13:14
2026-09-23
dev.to
ai-tools
pdfium and pypdf return different text from the same PDF — four mismatches to know before you feed PDFs to an LLM
A developer documented four cases where pdfium and pypdf extract different text from the same PDF, including zero horizontal scaling (0 Tz) that pdfium ignores but pypdf reads, /ActualText replacement…