D
David Boddie
So (I'm not being a wise guy) how does pdftotext do it so well?
There's a little information on that online:
http://www.glyphandcog.com/textext.html
You would need to look at the source code to see exactly what it does.
The text I can extract from PDFs is extracted as it appears in the doc.
Although there are various ways to insert and encode text in PDFs,
it's also well documented in the PDF specifications (http://
www.adobe.com/devnet/pdf/pdf_reference.html).
Just because inserting and encoding is well documented doesn't mean that the
reverse processes are easy. :-/
Going back to pdftotext... it works well at extracting text from PDF.
I'd like a native Python library that does the same.
Maybe you should look at the source code for pdftotext, if that's an option.
This can be done.
And, it can be done in Python. I've made a small start, my hope was that
others would be interested in helping, but I can do it on my own
too... it'll just take a lot longer![]()
Can I suggest that you approach one or more authors of the existing Python
PDF solutions and work with them on this? There are at least four PDF parsers
written in Python out there.
David