3 ms·
I have some questions: 1. Why return an array of texts? Where do the texts get split up? At page boundaries? Column boundaries? At the end of each line? If a l
by kijin 13y ago
I have some questions:
1. Why return an array of texts? Where do the texts get split up? At page boundaries? Column boundaries? At the end of each line? If a line is interrupted by a corner of an image and continues a couple of inches afterward, does it get treated as a separate text? (I once used a PDF->text extractor program that spit out every word sepearately, often in an incorrect order. That probably had to do with how the PDF was organized internally.)
2. "The PDF file should be smaller than 1 Mbit" -> You mean 1 megabyte, right? Because 1 megabit is only 125-128 kilobytes.
- trez 13y ago1. That's indeed dependant on the way the PDF has been created. Sometimes, you can even have letter splitted on different text token. 2. You're right, I mean Megabyte
- kijin 13y agoThanks for the clarifications. Since a lot of PDFs are badly organized (and I wonder if some programs deliberately do that to make text extraction difficult), perhaps you could try to analyze the location of each token on the page and merge the ones that seem to belong together. That would be already 100x better than most of the free PDF->text converters out there.
- alxbrun 13y agoOr even go the OCR approach !
- ygra 13y agoAll things considered that's pretty sad, though. A digital archive format that cannot reliably be read by machines, even if it contains just text.
- trez 13y agowe are already close to do that but with a really slow parser (this one can even replace some text on the pdf). Our problem now is to understand if developers would rather have better text extraction or some other features like image extractions, etc.. Let us know what you would prefer.
- kijin 13y agoImage extraction would be cool, but to me getting a readable block of text is more important.