News for hackers. Stuff that matters.
Re:Show HN: HTML visualization of a PDF file's internal stru... by bob1029 on Monday February 10, 2025 @03:12PM (#43004621)
Parsing data out of arbitrary PDFs is a cursed mission. PDF can contain images, so you might as well target JPEG directly.

OCR can take you pretty far depending on expectations, but it's never quite far enough in my experience.

Re:Show HN: HTML visualization of a PDF file's internal stru... by themanmaran on Monday February 10, 2025 @06:37PM (#43006736)
That's been our experience as well. Just scrapping any of the metadata associated with the PDF and treating it like an image. Since you never know when a document has a screenshot of an excel table inside.

The .NORM files (https://xkcd.com/2116)