Live data from Hacker News

OpenDataLoader-PDF: An open source tool for structured PDF parsing

github.com

21–30 of 31 posts

Re: OpenDataLoader-PDF: An open source tool for structured PDF parsing

#21
I got excited until I read that it was Java/Python based.

I'm looking for a library that can extract data tables from PDF and can be called from a C++ program (for https://www.easydatatransform.com). If anyone can suggest something, I'm all ears.

Re: OpenDataLoader-PDF: An open source tool for structured PDF parsing

#22
post #19

Earlier quoted context omitted.

Docling primarily uses AI models to extract PDF content, this project looks like it uses a custom parser written in Java, built atop veraPDF.

Correct me if I am wrong, but Docling can do both. It has also, among other strategies, a non-AI pipeline to determine the layout (based on qpdf I believe). So these projects are not that different.

While it has a PDF parser, my understanding is that it is mainly used to break a PDF document into chunks, which are then handed off to various specialized models. From its docs: "The main purpose of Docling is to run local models which are not sharing any user data with remote services."

Re: OpenDataLoader-PDF: An open source tool for structured PDF parsing

#23
post #6
post #3

Earlier quoted context omitted.

The current generation of models all support pretty long context now - the Gemini family has had 1m tokens for over a year, GPT-4.1 is 1m, interestingly GPT-5 is back down to 400,000, Claude 4 is 200,000 but there's a mode of Claude Sonnet 4 that can do 1m as well. The bigger question is how well they perform - there are needle-in-haystack benchmarks that test that, they're mostly scoring quite highly on those now. h…

sorry I should have been more clear, I meant around open source llms. and I guess the question is, how are closed source llm doing it so well. And if OS OpenNote is the best we have...

Mainly I think it's that you need a LOT of VRAM to handle long context - server-class hardware is pretty much a requirement to work with more than ~10,000 tokens.

Re: OpenDataLoader-PDF: An open source tool for structured PDF parsing

#24

I got excited until I read that it was Java/Python based. I'm looking for a library that can extract data tables from PDF and can be called from a C++ program (for https://www.easydatatransform.com ). If anyone can suggest something, I'm all ears.

What makes Java/Python not able to be called from C++, or did you mean you have other requirements that make the project unsuitable?

Re: OpenDataLoader-PDF: An open source tool for structured PDF parsing

#25

I just tested it on one of my nemeses: PDF bank statements. They're surprisingly tough to work with if you want to get clean, structured transaction data out of them. The JSON extract actually looks pretty good and seems to produce something usable in one shot, which is very good compared to all the other tools I've tried so far, but I still need to check it more in-depth. Sharing here in case someone chimes in with…

[dead]

Re: OpenDataLoader-PDF: An open source tool for structured PDF parsing

#26
post #4

I've been thinking lately that maybe we need a new AI-friendly file format rather than continuing to hack on top of PDF's complicated spec. PDF was designed to have consistent and portable page display rendering, it was not a goal for it to be easily parseable afaik, which is why we have to go through these crazy hoops. If you've ever looked at how text is stored internally in PDF this becomes immediately obvious. I'…

Sounds like you want XML

Re: OpenDataLoader-PDF: An open source tool for structured PDF parsing

#27
post #20
post #4

I've been thinking lately that maybe we need a new AI-friendly file format rather than continuing to hack on top of PDF's complicated spec. PDF was designed to have consistent and portable page display rendering, it was not a goal for it to be easily parseable afaik, which is why we have to go through these crazy hoops. If you've ever looked at how text is stored internally in PDF this becomes immediately obvious. I'…

Doesn't Latex do this?

Yea I think Latex is capable of much of this but it's also cursed

Re: OpenDataLoader-PDF: An open source tool for structured PDF parsing

#28

I got excited until I read that it was Java/Python based. I'm looking for a library that can extract data tables from PDF and can be called from a C++ program (for https://www.easydatatransform.com ). If anyone can suggest something, I'm all ears.

What makes Java/Python not able to be called from C++, or did you mean you have other requirements that make the project unsuitable?

I can fire up a Java program in a separate process. But it is slow and passing data backwards and forwards is clunky. Much better to be able to do it all in one process.

Re: OpenDataLoader-PDF: An open source tool for structured PDF parsing

#30
post #20

Earlier quoted context omitted.

Doesn't Latex do this?

Yea I think Latex is capable of much of this but it's also cursed

Don't need to convince me. I typeset my wife's PhD thesis in LaTeX and it looks great but it was so frustrating that after I did mine in Word.
Post reply on HN