pdfCreateFromPages Step

Use this step to create a new PDF by selective pages

Last published at: May 6th, 2025

Description:

This step creates a new PDF document by selecting pages from another PDF document. 

 

Inputs

  • inputFilePath - Input File Path
  • listOfPageNo - List of page numbers 
  • 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 “pdfCreateFromPagesDef” example.                             

  • Create a new definition called “pdfCreateFromPagesDef”
  • Select the definition and click the “design” button
  • Drag  the “pdfCreateFromPages” step to the canvas
  • Connect the dots between the Start and “pdfCreateFromPages” steps 
  • Define a variable/global to store the file path
  • Click the "pdfCreateFromPages" step to configure its "Required" properties. Provide a name for the step. Provide the source file path on the application server. Click the button to select the page numbers. Provide the variable references to hold the Output and Virtual PDF file paths. Click the Save button. 

 

  • Click the button to select the page numbers. A popup window is displayed for configuration. Click the Add Row (+) button to insert an empty row. Provide an individual page number on each row. The page numbers can be in any specific order. Click the Save button. You may add multiple page numbers using the Add Row button.  

 

  • 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 the “pdfCreateFromPages” process step to view the properties. This step makes a copy of the PDF from the pages as configured. Copy and paste the “pdfVirtualPath” variable value into a browser window to view the PDF file created from the pages. 

 

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.