2 ms·
Would a hacky script be acceptable? The one time I needed to turn a scanned PDF (600+ page book) into searchable text, I used this Ruby script https://github.c
by yorwba 9y ago
Would a hacky script be acceptable?
The one time I needed to turn a scanned PDF (600+ page book) into searchable text, I used this Ruby script https://github.com/gkovacs/pdfocr/ https://github.com/gkovacs/pdfocr/ , which pulls out individual pages using pdftk, turns them into images to feed into an OCR engine of your choice (Tesseract seems to be the gold standard) and then puts them back together. It can blow up the file size tremendously, but worked well enough for my use case. (I did write a very special purpose PDF compressor to shrink the file back, but that was more for fun.)