Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1. Create a form with two file upload fields to upload PDF files.

Figure 12: Add File Upload fields in form


Info

You may upload multiple PDF files into a single File Upload field. In that case, make sure to enable the "Enable Multiple file uploads" option under the UI section in Advanced Options.

Image Added

Figure 13: Enable Multiple Files Upload


2. Add one more file upload field. This field will be used to store the merged PDF generated.

Figure 14: File Upload field where the merged PDF file is stored


43. Configure Post Form Submission Processing

  • In Settings →  Advanced → Post Form Submission Processing, select Merge PDF Tool as the post-processing tool.

Figure 15: Post Form Submission Processing

Configure Merge PDF Tool Plugin

Image Added

Figure 16: Configure PDF Merge Tool


NameDescription
Source File

Header Field.

Choose Form (Source File) Select the form containing the PDF files you want to merge.
Choose Fields (Source File)

Select one or more File Upload fields that store the PDF files to be merged.
Use the ➕ button in the grid to add multiple fields.

Output File

Header Field.

Choose Form (Output File)

Select the form where the merged PDF file will be stored.

Choose Field (Output File)

Select the target File Upload field where the merged PDF will be stored.


4. Save the Configuration and Generate CRUD for the form

Image Added

Figure 17: Generate CRUD for the Form

Steps to run the Tool plugin

1. In runtime, go to Manage Merge PDF Tool Form and click New. Upload pdf files to the file upload fields and save the form.

Image Added

Figure 18: Manage Merge PDF Tool Form


2. After submission, click Edit on the record to open the form and download the merged PDF file stored in the Merged PDF field.

Image Added

Figure 19: Merged PDF file stored in the "Merged PDF" field after form submission

Source Code and Plugin Download

...