This synthetic three-page example was created on November 11, 2026 to make PDF extraction easy to inspect and reproduce.
A PDF-to-text handoff should show what was extracted, what changed and where each result came from. This single-column workshop document includes repeated page-edge labels, a leading-zero reference ID and two traps for overly broad cleanup: an identical label inside the body and a sentence containing the footer text.
Keep the source and every page traceable
The workflow keeps a byte-identical PDF copy and its SHA-256 hash, extracts raw UTF-8 text per page, then writes cleaned page files, combined text and a manifest linking every output to its source page.
Cleanup uses a case-sensitive whole-line allowlist. Only the original first and last nonempty extracted lines on each page are eligible, in one pass. Interior matches, substrings, spaces and blank-line bytes remain. This is not automatic header/footer detection: the exact strings and their page-edge placement must be approved first.
The result
All 16 source lines remain in the raw output. Six approved edge lines are removed, leaving ten body lines. Reference ID 000042, the repeated interior label and the sentence containing END OF SAMPLE are unchanged. Each removal is recorded with its page, original line number and exact text.
Check the result yourself
The downloadable ZIP includes the source PDF, declared expected text, raw and clean files, editable Python code, 22 automated tests, a page-mapped manifest and setup instructions.
All 22 tests passed. A fresh-copy run checked source preservation, output hashes, page order, exact cleanup and repeatability. Repeated extraction outputs were byte-identical. Poppler, a second extraction engine, matched every substantive source line. All three rendered source pages were also visually checked.
Limits and fit
Tested on Linux with Python 3.12.14 and pypdf 6.21.4. This demonstrates single-column, horizontal, selectable ASCII prose. Blank and image-only pages are flagged for review; encrypted and malformed documents are rejected or reported as failures.
This example does not establish OCR, table conversion, complex-layout, broad Unicode/font accuracy or Windows execution. A representative sample and every page's content and reading order still need human review before delivery.
Need this for a small batch of selectable-text PDFs? Message me about PDF-to-text extraction.
pdf-prose-public.zip
0 likes · 2 views · Nov 11, 2026
Synthetic three-page prose example: retained raw text, exact page-edge cleanup and a page-mapped manifest, with 22 tests and downloadable source.