---
title: "pdf split · RUAL Documentation"
description: "Splits a PDF into parts of a few pages each, for example to read a long document a few pages at a time. When the whole PDF fits in one part, the origina…"
canonical: https://docs.rual.nl/block-types/files/file_pdf_split
language: en
---

# pdf split

This block is part of the [`files`](https://docs.rual.nl/block-types/files) group and was last modified in core [`v15.0.3`](https://docs.rual.nl/core-versions/150003).

Splits a PDF into parts of a few pages each, for example to read a long document a few pages at a time. When the whole PDF fits in one part, the original file is returned as the only part without copying it. Pure Go: needs no poppler or mupdf.

- flow

- file `file` required The PDF to split (the first file of the pin).

- pages per part `number` How many pages each part owns. Default 5. One run cuts at most 100 parts. • Min: 1

Default `5`

- overlap `number` Extra pages before each part's own pages, included as context only (the part does not own them). Must be smaller than pages per part. Default 0. • Min: 0

Default `0`

- from `number` Cut one range only: first page (1-based). Overrides pages per part. Defaults to 1 when only to is set. • Min: 1

- to `number` Cut one range only: last page (inclusive). Defaults to the last page when only from is set. • Min: 1

- flow

- success `condition`

- error `value` MISSING_FILE, INVALID_TYPE, INVALID_FILE, FILEPATH_CONTAINS_INVALID_CHARACTERS, INVALID_RANGE, TOO_MANY_PARTS (more than 100 parts in one run: raise pages per part), PDF_UNREADABLE: {reason} (encrypted or damaged), COULD_NOT_CREATE_TEMP_FOLDER, COULD_NOT_WRITE_FILE or PDF_TOOLS_NOT_AVAILABLE.

- page count `number` Total number of pages of the source PDF.

- files `file` The parts as files, in page order.

- parts `array` One object per part: {index, from, to, own_from, own_to, page_count, file}. from..to is what the file holds (own pages plus overlap); own_from..own_to is what the part is responsible for.

## Version history

Introduced in [`v15.0.3`](https://docs.rual.nl/core-versions/150003).

- [Back to `files`](https://docs.rual.nl/block-types/files): Return to the main group to view all sub-groups

- [Back to `file modification`](https://docs.rual.nl/block-types/files?group=file%20modification): Return to the group to view all blocks within this group
