Split PDF Documents

You can select this activity to split a PDF document into smaller PDF documents. The documents can be split based on the pages or the file size.

This table lists the properties for the activity.

Property Type Property Name Data Type Description
Common Continue on error Boolean The option to continue the RPA flow even if the activity fails. This check box is selected by default.
Input File Path String The location of the PDF document that must be split into smaller documents. For example, C:\RPA\test.pdf
Output Directory String The location of the directory where the split PDF files must be saved. For example, C:\RPA\PDFOutput
Split Criteria PDFSplitCriteria The criteria for splitting the document. Possible values:
  • Page Number - Splits the documents into singular pages.
  • Size - Splits a file larger than 5mb into smaller files.
Page Selection <String> The specific pages required in the output. The specified page numbers can be individual pages, a comma-separated list of pages, a range of pages such as 1-5, or a combination of comma-separated ranges. This field is considered only when the Page Number option is selected in the Split Criteria field.
Split Size Int32 The specific size of the output split document. This value must be less than 5.The specified size is the upper limit of the output file. This field is considered only when the Size option is selected in the Split Criteria field.
Misc DisplayName String The name to be displayed for the activity.
Output Response Code Int32 Response code for the activity. Possible values:
  • 200 to 290: Indicates a successful response or valid output.
  • 400 to 499: Indicates client error responses.
  • 500 to 599: Indicates server error responses.
Note: You must create and specify the int32 variable to view the response code.