Interesting. I've used ocrmypdf for this a lot - https://ocrmypdf.readthedocs.io/en/latest/
Pdfsandwich
31–40 of 65 posts
Re: Pdfsandwich
#32Could someone explain what this does? The explanation paragraph does not make sense to me grammatically.
The input is a scanned PDF. The output is the same PDF with the recognized text on top, in a transparent font.
Copy and paste now works because when you click the PDF you are selecting the transparent text.
Re: Pdfsandwich
#33Using Pdfsandwich in college was like having a superpower. We would often be given PDFs with only image data. While my peers were still scrolling through and copying quotes by hand, I was there in seconds with Ctrl-F to find and copy/paste. Once you have text in the PDF, you can use any sort of text analysis tools. You can use tools to convert it to plain text and grep through, or anything else you want. That being s…
I have e.g. a directory with all weekly lecture slides for one lecture, and can directly find where (both file and page) we learned something related to photosynthesis via `rga photoshynthesis`.
Re: Pdfsandwich
#34Re: Pdfsandwich
#35Could someone explain what this does? The explanation paragraph does not make sense to me grammatically.
As far as I understand, it takes a PDF that contains only image data (e.g. a scan of a price of paper) and uses OCR to recognize the text, then overlays the text on top of the image in the output PDF. It would allow you to take a physically scanned document and create a PDF with selectable text you could copy+paste, search over, etc.
the text will be added to each page invisibly "behind" the images.
Re: Pdfsandwich
#36Re: Pdfsandwich
#37Currently pdf is not supported, but I've considered adding that in.
Re: Pdfsandwich
#38I wonder if we (like in "humanity") can live without PDF at all? The format has so many flaws and problems it is practically unusable for any task except producing a paper copy, which is progressively obsolete with all the displays and e-paper readers and mobile phones.
Re: Pdfsandwich
#39I wonder if we (like in "humanity") can live without PDF at all? The format has so many flaws and problems it is practically unusable for any task except producing a paper copy, which is progressively obsolete with all the displays and e-paper readers and mobile phones.
PDF is quite good at producing static output that will render predictably, and there aren't really any common alternatives for this. PDF becomes very problematic when you attempt to do anything else with it though, like edit it or parse it as input.
Re: Pdfsandwich
#40I wonder if we (like in "humanity") can live without PDF at all? The format has so many flaws and problems it is practically unusable for any task except producing a paper copy, which is progressively obsolete with all the displays and e-paper readers and mobile phones.