Guide
How to split a scanned PDF stack into separate documents
A mailroom scanner often produces one long PDF that holds a delivery note, an invoice, a letter and its enclosure. The Split Agent reads the pages, decides from the content where each document begins, drops blank pages, keeps enclosures with their letter and saves every part as its own file. The original scan is not deleted.
How the agent decides where a document ends
The agent works from what is printed on the pages. It looks at letterheads, the first page of a document, a change of document type and a jump in the date. In the Split method tab of the agent, the default is called Automatic detection: boundaries come from content, sender, date and document type. Separator sheets are possible but not required.
Pages without a text layer go through AI-OCR first, so a flat scan is handled like a digital PDF. A page that is truly empty counts as a separator and does not become a file.
A letter that mentions an enclosure, for example with the word enclosed or an enclosure line at the bottom, keeps the following pages as part of the same document. If a page is ambiguous, it stays with the current document and no new one is started.
Step by step in the app
The steps use a seven-page batch scan from a mailroom as an example.
- Create a Split Agent. Give it a name such as Split mailroom and choose the level Premium, so that the filenames can contain document type, date and sender.
- Open the tab Split method. The choices are automatic, by a cover page, by a separator code, by a change in document type, after a fixed number of pages, per person or file, or your own rule. Leave it on Automatic.
- Open Filename & metadata and pick a template: Standard, Date First, Sender First or Minimal. The fields are Document Type, Date, Sender and Index. The Index is a running number that keeps names unique. The preview line shows how your filenames will look, for example:
DocumentType_Date_Sender.pdf - Set the Language for AI output. The scan itself does not have to be in that language.
- Open Storage target and choose either New Workspace or Existing Workspace, for example an existing workspace called Mailroom 2026.
- In the document list, select the scanned PDF or several of them. Click Actions, then Split, then Run via Split Agent, and confirm with Start.
- Watch the processing monitor. When it shows Completed, the table Created documents lists each new file with its filename, page count and document type, and a line shows how many were imported. Open Workspace takes you to the result.
Worked example: five pages, three documents
The example uses fictional documents. The scanned file has five pages: a delivery note, a blank page, an invoice, a cover letter and an enclosed certificate. The file is called:
scan_2026-08-24.pdf
The agent finds three documents. The delivery note is one page, the invoice is one page and the cover letter with its certificate is two pages. The blank page is removed. The parts are named from their content:
Delivery_Note_2026-08-16_Veldtmann_Antriebssysteme_GmbH.pdfInvoice_2026-08-18_Iberica_Components_S.L.pdfBusiness_Letter_2026-08-16_Veldtmann_Antriebssysteme_GmbH.pdf
Spaces in the parts of a name become underscores, and by default the date uses the order year-month-day. The invoice is in Spanish and the other two documents are in German, yet the type names are in English because the output language was set to English.
With the seven-page batch scan from the steps above, the result is five documents. The separator sheet is gone, and the document list shows Agent done in the Split Agent column of the original.
What happens after the split
Each part arrives in the workspace as a normal document. It gets a text layer and is processed like any other upload, so data fields, workflows and everything else can follow. For example, an order can then be extracted with a title and a summary that includes the amount.
Take a short look through the new list before you rely on it. If the cut points are right, continue as usual.
Automating it through the API or MCP
You can also start the Split Agent through the REST API or as a tool on the MCP server. The routes and parameters are described in the API documentation.
Split Agent in the API documentation
Control and data handling
Because the source file stays in its workspace, you can always compare a part with the original scan. Choosing a new or an existing workspace as the target keeps the results where your team expects them.
Document processing (OCR, extraction, classification) runs on PaperOffice's own hardware in its own data center in Spain (EU), without external AI providers.
What it does not do
- The agent does not know your internal filing rules. Check the names and cut points of important stacks, especially mixed batches.
- Names with document type, date and sender need the Premium level or higher. The simplest level gives boundaries and names only.
- Blank pages and separator sheets are removed. Every other page with content stays in a document, even if it is short.
- The agent works on PDF files. When many files are selected in the app, files that are not PDFs are skipped.
- An ambiguous page stays with the current document. Use the audit trail of the Ultra level when you need the reasons for a cut.
As of: Back to the Split Agent