2 ms·
Awesome, I did not know that this works :-) Thank you.
by sandreas 5y ago
Awesome, I did not know that this works :-) Thank you.
- stonewareslord 5y agoAdditionally, 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