4 ms·
What's I'd like to see is a library that can extract multi-column text into a readable format. From looking at the source of the HTML here, they're doing it wit
by wesley 14y ago
What's I'd like to see is a library that can extract multi-column text into a readable format. From looking at the source of the HTML here, they're doing it with absolute positioning. Nothing wrong with that for display purposes, but I'd like to have a library that can extract text meaningfully from a multi-column PDF.
- maxerickson 14y agoThe pdftotext tool from xpdf does something like that. One option pads the output text with spaces to roughly match the layout of the pdf (the -layout option) and another option just strips the pdf formatting out (the -raw option). Depending on the structure of the pdf, one or the either may give better output (the -layout output would need some more processing).