PDF Split
PDF Split
Section titled “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.
How it works
Section titled “How it works”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.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
path | expression | Source PDF path. |
outputDir | expression | Folder where to save the separate pages. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
prefix | expression | Name prefix for files. By default, the source name without extension. |
Output
Section titled “Output”Returns a List with the paths of the created files (one per page).
Example
Section titled “Example”Separate a batch and process each page:
PDF Split path = = ruta outputDir = "C:/separados" → output: paginasFor Each items = = paginas itemVariable = pagPdf └─ activities: PDF Get Text path = = pagPdf → output: texto ... procesar cada documento ...Related activities
Section titled “Related activities”- PDF Extract Pages — extract a range to a single PDF.
- PDF Merge — the reverse operation: merge.