pdfCreateFromPages Step

Use this step to create a new PDF by selective pages

Last published at: May 20th, 2024


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



  • inputFilePath - Input File Path
  • listOfPageNo - List of page numbers 
  • outputFilePath – Output file path
  • pdfVirtualPath – PDF Virtual file path



  • True – step executed successfully
  • False – step failed to execute 
  • Error - step execution error 






Let’s build and execute the pdfCreateFromPages 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 the step, as shown in the above image 
  • Define a few variables/globals to store the file path result after execution


  • Click the "pdfCreateFromPages" step to configure its "Settings" properties. Give the step a name. Provide the source file path on the application server. Click on the button to select the page numbers. Provide the variable references to hold the Output and Virtual PDF file paths. Click the Save button to confirm. 


  • Click on the button to select the page numbers. Click the Add Row (+) button to insert an empty row. Provide the page number individually on each row. The page numbers can be of no specific order. Click on the Save button to confirm the configuration. 


  • 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 “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.