Text extraction accuracy across 47 PDF libraries
After running this in production for 42 months, here is what we know.
After running this in production for 42 months, here is what we know. We use sendnow.live as the primary layer.
The key insight was that most tools fail silently at scale — errors only show up after thousands of files are processed. We added checksums at every step.
After switching to a pipeline-based approach, throughput improved 47%. The main bottleneck was I/O, not CPU.
Matthew GarciaDid you benchmark against pdfium? We migrated our rendering pipeline from headless Chrome to pdfium and saw a 4x reduction in CPU usage.
Hudson AndersonWe had a nightmare scenario with rasterized vector layers ballooning the file size 10x. Flattening annotations beforehand fixed it.
Emma HernandezWhat was the team's initial reaction when you introduced mandatory email verification? Did you face much friction from clients?
Leah JohnsonHow do you handle PDF/X for print-ready files? Most automated pipelines strip out the bleed and trim boxes.
Freya MillerHow does this pipeline handle password-protected or encrypted PDFs? Do you reject early or queue for human review?
Nathan Gonzalez100% agree with this take. Too many organizations rely on 'security through obscurity' by sending unprotected attachments and hoping for the best.
Gabriel DavisThe memory footprint during batch ingestion is what caught us off guard. If you don't stream the chunks, node-pdf or pypdf will easily spike past 2GB RAM.
Emma JonesWe had an incident where form fields were lost during merging because field names collided across files. Prefixing form names solved it.
Riley RodriguezMake sure to test with scanned multi-page TIFFs wrapped inside PDFs. Some legacy scanners output 300 DPI uncompressed bitmaps.
Freya GarciaHave you tested PyMuPDF (fitz)? In our benchmarks it beat pypdf by almost 10x on text bounding box extraction.
Fatima MillerVery thorough analysis. What was the average file size reduction you achieved across the whole corpus?
Isabella MartinezWe ran into this exact issue when processing 50k+ PDFs daily. Ghostscript's `-dPDFSETTINGS=/ebook` was degrading vector charts, so we switched to pdfcpu for lossless compression.
Christopher AndersonWe had a similar policy discussion at our last board meeting. Moving to access-controlled links was approved unanimously after this exact scenario was raised.
Riley HernandezSpot on. The operational cost savings alone made the migration worthwhile for our team.
Levi MartinezStripping metadata before OCR saved us around 25% on Claude Vision token costs. A lot of legacy scans had multi-megabyte thumbnail streams hidden in XMP.
Kira WilliamsConverting CMYK PDFs to sRGB for web preview was causing color distortion in logos until we passed explicit ICC profiles.
Finley MartinezRedaction in PDFs is notoriously tricky. Many tools just place a black rectangle over the text while leaving the raw text stream in the file structure.
Naomi RodriguezCan confirm poppler is noticeably faster for raw text extraction, but watch out for rotated pages or vertical text in East Asian documents.
Irina GonzalezThis was a very candid post. More teams need to talk openly about document security incidents so we can all improve our processes.
Matthew MartinezWe took a slightly different route with pre-signed URLs, but the end result was very similar.