How to Split a PDF by Text: One File per Invoice, Payslip or Statement
Split a combined PDF wherever a keyword or pattern appears, keep multi-page documents together and name each part from the matched number.

How to Split a PDF by Text
Accounting, payroll and billing systems love to export everything as one long PDF: a month of invoices, every employee's payslip, statements for all customers. Before you can email each one, you need separate files. Splitting every page would break multi-page documents; splitting every two pages fails as soon as one document is longer. The reliable method is to split where each new document starts, and that is what PDF Split by Text does.
How split by text works
Each document in a batch begins with recognisable text: "Invoice No.", "Payslip for", "Statement of account". The tool reads the text of every page, finds the pages where that text appears, and starts a new part at each one. Everything up to the next match belongs to the same part, so a three-page invoice stays together.
Choosing the split text
Pick text that appears exactly once per document, at its start:
- Invoices: the invoice number label, such as "Invoice No." or "Tax invoice".
- Payslips: "Pay advice", "Payslip" or the employee number label.
- Statements: "Statement of account" or "Account number".
- Reports: "Chapter" or "Section" at the top of a page.
Avoid text that also appears in footers or totals. Limiting the search to the top lines of each page solves most false matches.
Naming parts from the matched text
Plain keywords give parts called 01-Invoice, 02-Invoice. A regular expression can capture the number itself. For example:
Invoice\s*No\.?\s*([A-Z0-9-]+)
The part in brackets becomes {match}, so a name pattern of Invoice-{match} produces Invoice-INV-2041.pdf. Payslips can use the employee number, statements the account number.
Pages before the first match
A batch export often starts with a cover or summary page. Decide whether it should be its own file, join the first document or be dropped. The split table shows exactly where every part begins and ends.
Checking the split
Read the table before downloading:
- the number of parts should match the number of documents you expect;
- page ranges should look plausible, mostly one to three pages for invoices;
- names should contain real numbers, not words picked up by mistake.
If something is off, tighten the pattern or reduce the number of top lines searched.
Scanned batches
Batches printed and scanned have no text until OCR is run. After OCR, splitting works, but OCR can misread characters such as 0 and O in numbers, so check the names closely.
Example
A 212-page monthly invoice run from an accounting package contains 87 invoices. With the invoice preset, 87 split points are found near the top of pages, and the ZIP holds Invoice-INV-3001.pdf to Invoice-INV-3087.pdf, each with all of its pages.
After the split
Split files are easier to handle when their names match your records. If the matched text is not enough on its own, combine the split with a renaming step that reads dates and totals from each part. Keep the original batch export as well, so you can always rebuild the set if a file is lost or a question comes up later.
When page counts are fixed
If every document in a batch has exactly the same number of pages, for example single-page payslips, a split every N pages also works. Split by text is safer whenever lengths vary, which is the usual case for invoices and statements.
Privacy and limits
Payslips and statements contain personal and financial data. The splitting runs in your browser, and nothing is uploaded. The tool copies pages exactly and does not check whether each part is complete or correct, so treat the result as a draft until you have checked the table.


&c=%23b45309&k=from-pdf)
