News for hackers. Stuff that matters.
Re:Ingesting PDFs and why Gemini 2.0 changes everything by twelve40 on Wednesday February 05, 2025 @06:11PM (#42956704)
Isn't it amazing how one company invented a universally spread format that takes structured data from an editor (except images obviously) and converts it into a completely fucked-up unstructured form that then requires expensive voodoo magic to convert back into structured data.
Re:Ingesting PDFs and why Gemini 2.0 changes everything by sconeguy on Wednesday February 05, 2025 @06:27PM (#42956861)
What would it have taken to store the plain text in some meta field in the document. Argh, so annoying.
Re:Ingesting PDFs and why Gemini 2.0 changes everything by dkjaudyeqooe on Wednesday February 05, 2025 @07:59PM (#42957625)
PDF provide that capability, but editors don't produce it, probably because printing is though OS drivers that don't support it, or PDF generators that don't support it. Or they do support it but users don't know to check that option, or turn it off because it makes PDFs too large.
Re:Ingesting PDFs and why Gemini 2.0 changes everything by user_7832 on Wednesday February 05, 2025 @10:51PM (#42958861)
Do you know what this field/type is called, and I’d any of the big names (MS/Adobe etc) support creating such PDFs?
Re:Ingesting PDFs and why Gemini 2.0 changes everything by bux93 on Thursday February 06, 2025 @02:19AM (#42959942)
OCR software like ABBY can spit out something called a "searchable PDF", which has a text layer underneath a picture of a scan. Otherwise, PDF has 'dictionaries' with arbitrary key-value pairs in them. The "Info" dictionary has some specific metadata fields like Author, and a "Font" dictionary embeds fonts, but you're free to use those dictionaries for whatever. There's also a standard to embed 'dublin core', rights management and custom metadata called XMP. Files can be embedded. You can also use comments, as PDF is a subset of postscript. When a PDF gets converted to PDF/A (by archiving software) or flattened/optimized, most of these are likely to be lost.
Re:Ingesting PDFs and why Gemini 2.0 changes everything by dkjaudyeqooe on Thursday February 06, 2025 @04:31AM (#42960671)
I believe it's a "hybrid PDF" but I'm not sure if there's a further standard for merely embedding text.

https://stackoverflow.com/questions/67358370/what-the-standa...

Re:Ingesting PDFs and why Gemini 2.0 changes everything by groby_b on Wednesday February 05, 2025 @08:04PM (#42957655)
PDF supports that just fine. It's just that many PDF publishers choose not to use that.

You can lead a horse to water...

Re:Ingesting PDFs and why Gemini 2.0 changes everything by shermantanktop on Wednesday February 05, 2025 @06:28PM (#42956872)
is "put this glyph at coordinate (x,y)" really what you'd call "structured"?
Re:Ingesting PDFs and why Gemini 2.0 changes everything by dkjaudyeqooe on Wednesday February 05, 2025 @08:01PM (#42957640)
He's calling PDFs unstructured: structured editors -> unstructured PDF -> structured data
Re:Ingesting PDFs and why Gemini 2.0 changes everything by irjustin on Wednesday February 05, 2025 @11:27PM (#42959081)
It's not the structure that allows meaningful understanding.

Something that was clearly a table now becomes a bunch of glphy's physically close to eachother vs a group of other glphys but when considered as a group is a box visually separated from another group of glphys but actually part of a table.

Re:Ingesting PDFs and why Gemini 2.0 changes everything by nitwit005 on Thursday February 06, 2025 @03:39AM (#42960357)
People kind of dump whatever in pdf files, so I don't think a cleaner file format would do as much as you might think.

Digital fax services will generate pdf files, for example. They're just image data dumped into a pdf. Various scanners will also do so.

Re:Ingesting PDFs and why Gemini 2.0 changes everything by surfingdino on Thursday February 06, 2025 @07:02AM (#42961573)
In my experience AWS Textextract does a pretty good job without using LLMs.
Re:Ingesting PDFs and why Gemini 2.0 changes everything by shermantanktop on Thursday February 06, 2025 @11:19AM (#42963880)
PDFs began as just postscript commands stored in a file. It’s a genius hack in a way that has become a Frankenstein’s monster.
Re:Ingesting PDFs and why Gemini 2.0 changes everything by Bluestein on Thursday February 06, 2025 @05:33PM (#42967188)
... and call's it "portable", to boot.-