Bulk Generator Plugin Documentation: How to Install and Configure
Bulk Generator is a premium plugin for Gravity PDF that makes it simple to bulk-generate the PDFs for your Gravity Forms entries and download as a zip file or merged document.
You can purchase the Bulk Generator plugin from the Extension Shop. This guide will walk you through installing and using the Bulk Generator plugin.
This documentation refers to version 2 of the Gravity PDF Bulk Generator add-on. The v1 documentation can be found here.
Prerequisites
- Gravity PDF 6.0 or higher
- WordPress 5.7 or higher
- The WordPress REST API must be enabled to use this plugin.
- PHP Zip Extension
Installation
Please follow our installation guide, which provides instructions for uploading the add-on to your WordPress website and adding your license key for automatic updates.
Configuring
The extension adds a new bulk action called Download PDF to Gravity Forms Entry List pages. Like other bulk actions, you can select the checkbox next to each entry to include them in the download. We recommend you become familiar with Gravity Forms' powerful search and filtering capabilities to help select only the entries you are interested in. You can also use Gravity Forms' Select All Entries feature to include every entry that matches your current search/filter parameters.
The Download PDF
option will only be listed in the Bulk Action select box if you have at least one active PDF configured on your form.
0. Bulk Generator
Once you've picked your entries, select the Download PDF bulk action from the dropdown menu and then the Apply button. A new window will appear to take you through the rest of the process, which is split into three simple steps:
- Configure
- Build
- Download
1. Configure
After you've selected the Download PDF bulk action a dialog box will open and bring up the Configure step. This screen allows you to choose the PDFs to include in the export, how the documents are stored in the zip, whether the PDFs are merged together, and the filename of the export.
Bulk Generator's form settings will be remembered by your browser, making it easier to run regular exports.
Select PDFs
Choose the entry PDFs you'd like included in the export. If a PDF isn't shown then verify it hasn't been deactivated) (only active PDFs are included in the list).
Merge PDFs
Enable this setting to combine all selected PDFs into a single document. The current and total page numbers will be displayed in the footer of the document.
When this setting is disabled, you will download a zip file that contains all generated documents.
This feature is in beta and can be resource-intensive. You may encounter problems if trying to merge a substantial number of documents / pages together.
PDF Filename
When the Merge PDFs setting is enabled, you can set the filename of the PDF you download. Form merge tags that do not rely on entry data can be used, and the UI includes a small list of common tags to add.
Directory Structure
This option allows you to organize your PDFs into folders inside the zip archive, and will be shown when the Merge PDFs setting is disabled.
Most merge tags available to the current form can be used in the Directory Structure setting. The UI includes a small list of common tags you can add, but you aren't limited to these.
Zip Filename
When the Merge PDFs setting is disabled, you can set the filename of the zip archive you download. Form merge tags that do not rely on entry data can be used, and the UI includes a small list of common tags to add.
2. Build
This step does all the heavy lifting to generate and zip or merge the PDF documents. Once you've chosen the PDFs to create, select the Build button to begin.
You'll need to leave your browser window open until the process is completed, otherwise the build will be cancelled.
The length of time it takes a build to run depends on how many entries you've selected, the size and complexity of each PDF, and the quality of your web hosting provider. A progress bar will show the overall progress, and an activity log highlights any problems that might occur.
You can cancel the build process at any time by selecting the Cancel button.
3. Download
When all the PDFs are generated and zipped/merged you'll reach the Download step. You'll either be prompted to download the file or it will be downloaded automatically (depends on your browser settings). If neither of those occur, you can use the download link displayed on screen.
FAQ
How many entries / PDFs can be bulk-generated?
There aren't any hard limits when zipping the PDFs (we've tested with 10,000 documents). The limiting factor is likely to be the amount of disk space your hosting plan allows. For example, if each generated PDF is 100kb, and you've 10,000 documents to include, you'll need at least 1GB of free space for the build.
Merging the PDF documents together requires a lot more WordPress memory than the zip method, and will be the limiting factor. For the best experience we recommend keeping the total page count under 1000.
In the zip, why does the filename of some PDFs include the entry ID and PDF ID?
If a PDF with the same filename already exists, the Entry ID and a shortened version of the PDF ID (the first two and last two characters) is added to the filename to prevent a naming conflict. If you don't want this to occur, make use of merge tags in the PDF filename so it will be unique for each document.
Do I need to configure my settings every time I generate in bulk?
No, you don't. Your browser will remember the last settings used for specific form. The settings won't be restored if you use a different computer or web browser, clear your browser cache, or run the bulk generator for the first time on a new form.
There are warnings in the activity log. What do they mean?
The Bulk Generator will display warnings for the following reasons:
Deactivated PDF - shown when a PDF is deactivated after the build has begun. Reactivate the PDF and run the build again.
Invalid PDF - shown when a PDF gets deleted after the build has begun. If it was deleted accidentally, you should recreate the PDF on the form and run the build again.
There are a number of errors in my Activity Log. Why did they occur?
Errors are shown in the activity log if, after three attempts, the PDF was unable to be successfully generated and saved on the server. Some reasons this could occur include:
- Filesystem busy
- Network error
- Memory limit exceeded
- PHP Error / Warning / Notice triggered
- Bulk Generator session becomes invalid
The activity log only shows a generic error. You will need to enable Gravity Forms logging and run the Bulk Generator process again to get specific information about the problem. The log files are verbose and can be hard to read, so if you need help please leave logging enabled and open a support ticket.
During the Build step a fatal error occurred. What now?
It could be a temporary filesystem or network error. First, reload the page in your browser and run the Bulk Generator again. If it happens again, enable Gravity Forms logging and re-run the Bulk Generator. This will save the specific errors in the log file and can be used to debug the issue. The log files are verbose and can be hard to read, so if you need help please leave logging enabled and open a support ticket.
I'm a developer and want to trigger an action after the Build process is complete. How do I do that?
The Javascript hook gform.doAction('gpdf-bulk-generator-redux-store', store)
allows you to listen for changes to the data store. This basic plugin shows how to set this up.
Translations
The Bulk Generator plugin has been translated in the following languages with the help of AI:
- English
- French
- Spanish
- German
- Chinese
- Dutch
- Portuguese
- Russian
If you'd like to translate the plugin into your own language, or change the existing translations, you can follow this How To Guide. Note: the text domain for Bulk Generator is gravity-pdf-bulk-generator
.