Gravity PDF Requirements and Detailed Installation Instructions
Plugin Requirements
Gravity PDF can be run on modern shared web hosting providers, and the easiest way to check if your host can run it is to install the plugin. Gravity PDF has checks in place when you first activate it on your WordPress website, and it will let you know if there are any issues than need addressing.
Gravity PDF is a free third-party plugin for Gravity Forms and you will need your own Gravity Forms license (any tier will work) before you can use the add-on.
Software Requirements
- Gravity Forms 2.5+.
- WordPress 5.3+
Server Requirements
- PHP 7.3+
- MB String with Regex enabled (
--enable-mbregex
) - GD Library
- DOM
- libxml
- Ctype
- allow_url_fopen (optional) - If you have image display problems make sure this option is enabled.
- 128MB+ WP Memory (256MB+ recommended)
Installation
If your browser auto-extracts zip files when downloaded, you'll need to temporarily disable this functionality to prevent issues during installation. See how to disable this in Safari.
Direct Installation
- Download the latest version of the plugin from GravityPDF.com
- Log in to your WordPress admin area
- Navigate to
Plugins > Add New Plugin
and select theUpload Plugin
button - Upload the zip file downloaded in step 1 and select the
Install Now
button - Finish up by selecting the
Activate Plugin
button
All future updates for Gravity PDF are done directly from your WordPress admin area – no zip file required.
Composer Installation
For developers, the free Gravity PDF plugin is easily installed using Composer:
- Open your
composer.json
file and add the Gravity PDF repository:
"repositories": [
{
"type": "composer",
"url": "https://composer.gravitypdf.com",
"only": [
"gravitypdf/*"
]
}
]
- From your CLI add the Gravity PDF plugin to your project with the command:
composer require gravitypdf/gravity-pdf
- If the CLI prompts you about the
composer/installers
package choose yes (y
). The package ensures Gravity PDF is automatically installed to/wp-content/plugins/
, and not the/vendor/
directory.
Gravity PDF Extensions can be installed with Composer, too! Refer to the Extension Installation guide for instructions.
Example of composer.json
This is an example of what a complete composer.json file might look like to successfully installed the Gravity PDF plugin:
{
"name": "acme/wordpress-website",
"type": "project",
"config": {
"allow-plugins": {
"composer/installers": true
}
},
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org",
"only": [
"wpackagist-plugin/*",
"wpackagist-theme/*"
]
},
{
"type": "composer",
"url": "https://composer.gravitypdf.com",
"only": [
"gravitypdf/*"
]
}
],
"require": {
"php": "^8.3",
"wpackagist-plugin/two-factor": "^0.9",
"gravitypdf/gravity-pdf": "^6.12"
}
}
WP-CLI Installation
For developers who use the WP-CLI to manage WordPress, you can use this command to install Gravity PDF:
wp plugin install https://gravitypdf.com/download-gravity-pdf --activate
FTP Installation
- Download the latest version of the plugin from GravityPDF.com
- Unzip the downloaded zip file. A folder called
gravity-pdf
will be extracted and this is what you should upload to your FTP server. - Open your favorite FTP client (we recommend Filezilla) and enter your hostname, username and password.
- Navigate to your WordPress plugin directory in your FTP client (usually
/wp-content/plugins/
) and upload the plugin folder. If a directory calledgravity-pdf
already exists, delete it before uploading. - Finish up by activating the plugin on the
Plugins
admin page