Versions Compared

Key

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

...

Figure 1: Merge PDF Button in Datalist

Getting Started

Steps

1. You can obtain the jar file by the latest release at https://github.com/jogetoss/merge-pdf-datalist-action/releases.

...

Steps for creating app from scratch

1. Create a form with a file upload field to upload PDF file.

Image RemovedImage Added

Figure 2: Add File Upload fields in form

...

Figure 3: Generate CRUD for form


3. Go to the List generatedBuilder. Drag the Merge PDF Datalist Action plugin into the datalist. By dragging to column, it will download each record row individually, by dragging to the bottom it will download based on selected records. Refer to to Merge PDF Datalist Action Properties for plugin configurations.

Image RemovedImage Added

Figure 4: Drag Merge PDF Datalist Action Buttons into datalist


4. Publish and run the UI. Go to the CRUD and click New. Add a new record and upload multiple PDF files.

Figure 5: Upload some PDF files


5. Add another record to showcase downloading the zip file of all PDFs when all records are selected.

...

Figure 8: Download Merged PDF


8. Now, click on the Download all merged PDF in Zip, this will download all the merged PDFs in each record as a zip file

...

9. The ZIP file is downloaded. Extract the file and you can get the merged PDFs from each record.

Image RemovedImage Added

Figure 10: Download all merged PDF in zip file

...

Figure 11: Merge PDF Datalist Action Plugin Configurations

Name

Description

Label 

Datalist button label.

Form *

Form that contains the file upload field.

Field *

File Upload field that the PDF is uploaded to.

Record Id Column 

If not set, default value will be the primary key of the configured binder.

Confirmation Message

Confirmation message before performing action, for example "Are you sure?".

File Name

If not set, default file name will be based on record id field value.

Zip File Name

The file name of the zip file. If not set, default file name will be the button label.

Source Code and Plugin Download

You can obtain the jar file by the latest release at https://github.com/jogetoss/merge-pdf-datalist-action/releases.

Demo App Download

Download the demo app from https://github.com/jogetoss/merge-pdf-datalist-action (.jwa file).