4 ms·
The 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) a
by maxerickson 14y ago
The 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).