Skip to content

PDF Split

Type: pdf-split  ·  Package: PDF Activities v1.2.4  ·  Output: List

Splits each page of a PDF into its own file, and returns the list of files created. Useful when you receive a batch of documents in a single PDF (one page per document) and need to process them separately.

Creates one PDF per page of the original document in the outputDir folder and returns the list of paths created, in page order. The original stays intact.

  • Files are named <prefix>_<page>.pdf, with the page as three digits: batch_001.pdf, batch_002.pdf… If you don’t set prefix, the source PDF name without extension is used.
  • It creates outputDir if it doesn’t exist and overwrites files with the same name. If you split several PDFs into the same folder, use a different prefix for each.
ParameterTypeDefaultDescription
pathstring—Path of the source PDF.
outputDirstring—Folder where the split pages are saved. Created if it doesn’t exist.
ParameterTypeDefaultDescription
prefixstringsource namePrefix of the file names. By default, the source PDF name without extension.

Returns a List of string with the full paths of the files created, one per page and in order (C:/split/batch_001.pdf, …).

MessageCause and fix
File not found.The path doesn’t exist.
'path' is required. / 'outputDir' is required.The parameter was left empty or its expression returned null.
PDF library error when opening the filePassword-protected or damaged PDF. See Protected and damaged PDFs.
File system access errorNo permission on outputDir, or an output file is open in another program.

Split a batch and process each page:

PDF Split path = filePath outputDir = "C:/split" prefix = "batch" → output: pages
For Each items = pages itemVariable = pagePdf
└─ activities:
PDF Get Text path = pagePdf → output: text
... process each document ...