Can a PDF extractor read this quotation?
These two synthetic one-page PDFs look identical. Both show the columns SKU and QTY, with 12 units of USB-32 and 7 units of TF-64. Download them to compare what each extractor can read.
Native PDF
Selectable text and vector grid lines.
- PyMuPDF 1.28.2 table cells
[[['SKU', 'QTY'], ['USB-32', '12'], ['TF-64', '7']]]
- pypdf 6.19.0 text
SKU QTY USB-32 12 TF-64 7
Image-only PDF
One image of the same page.
- PyMuPDF 1.28.2 table cells
[]
- pypdf 6.19.0 text
(empty)
What the two tests recovered
We used PyMuPDF’s page.find_tables() and called extract() on every detected table. For pypdf, we used reader.pages[0].extract_text(). The tests ran without OCR.
On the native PDF, PyMuPDF recovered the header and both data rows as cells. pypdf recovered their values as plain text without cell structure. Both results were empty on the image-only copy.
This test covers one table with clear grid lines. If your PDF has a different layout, compare the extracted rows with the original before reusing the values.
Check the samples in your browser
Open PDF File Inspector and inspect each file. The inspector detects readable text on the native PDF. The scan has no readable text for PDF.js to detect. Try OCR PDF to recognize text from a scan.