5 ms·
Additionally, some PDFs (like textbooks) insert intentionally mangled embedded text to prevent copying/pasting. You can rasterize them and push them through pdf
by stonewareslord 5y ago
Additionally, some PDFs (like textbooks) insert intentionally mangled embedded text to prevent copying/pasting. You can rasterize them and push them through pdfsandwich/ocrmypdf to wipe these hidden layers and re-ocr them.
Haven't done it in a while, but looks like this should work: https://askubuntu.com/a/845119 https://askubuntu.com/a/845119
Obviously replace convert with mogrify ./* after backing them up
- lelandfe 5y agoGreat note! ocrmypdf can also output the OCR’d text as a file using the oddly named “sidecar” parameter. $ ocrmypdf --sidecar text.txt input.pdf output.pdf