Description:
This step creates a copy of the PDF document by including a table of contents.
Inputs
- inputFilePath - Input File Path
- outputFilePath – Output file path
- pdfVirtualPath – PDF Virtual file path
Returns
- True – step executed successfully
- False – step failed to execute
- Error - step execution error
Usage:
Example:
Let’s build and execute the pdfRemoveBlankPages example.
- Create a new definition called “pdfRemoveBlankPagesDef”
- Select the definition and click the “design” button
- Drag “pdfRemoveBlankPages” step to the canvas
- Connect the dots between the start and the step, as shown in the above image
- Define a few variables/globals to store the file path result after execution
- Click the "pdfRemoveBlankPages" step to configure its "Settings" properties. Give the step a name. Provide the source file path on the application server. Provide the variable references to hold the Output and Virtual PDF file paths. Click the Save button to confirm.
- The “Logging” setting configuration is necessary for documentation and also measures the workflow progress and the percent complete. This is achieved by configuring the step state and percent fields individually, as shown in the images below. Configure the “Logging” using the following properties.
- Save the process definition, create a new instance, and execute. Render the process instance. Click on the “pdfRemoveBlankPages” process step to view the properties. The step makes a copy of the PDF with no blank pages. Copy and paste the pdfVirtualPath variable value into a browser window to view the PDF file.
Definition Sample:
You may download the sample definition(s) from the link here and later import it (drag-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page.
NOTE: Please verify and complete the process steps for any missing configurations, such as file path references and database connections after import. Then, save the definition to confirm the changes.
Click here to download the sample file.