Skip to content

PDF Split

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

Separates each page of a PDF into a separate 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.

Create a PDF for each page of the original document in the outputDir folder, naming them with a prefix (by default, the name of the source file) followed by the page number. Returns the list of created routes.

ParameterEditorDescription
pathexpressionSource PDF path.
outputDirexpressionFolder where to save the separate pages.
ParameterEditorDescription
prefixexpressionName prefix for files. By default, the source name without extension.

Returns a List with the paths of the created files (one per page).

Separate a batch and process each page:

PDF Split path = = ruta outputDir = "C:/separados" → output: paginas
For Each items = = paginas itemVariable = pagPdf
└─ activities:
PDF Get Text path = = pagPdf → output: texto
... procesar cada documento ...