PDF Merge & Split
Patterns for combining multiple PDFs into one file and splitting a multi-page PDF into individual documents. All PDF actions use $fx wrapping with \\ path separators.
Sign in or create a free account to copy this script.
Problem this solves
Users need to combine daily reports into a single PDF for distribution or split batch scans into individual documents.
Usage Notes
- 1.Pdf.MergeFiles accepts a List variable of file paths, not a DataTable.
- 2.Pdf.ExtractPages PageSelection supports single pages, ranges, and comma-separated combinations.
- 3.PAD has no native get PDF page count action — Pattern 2 includes a PowerShell workaround using iTextSharp.
- 4.IfFileExists: Pdf.IfFileExists.AddSequentialSuffix prevents overwriting.