Really interesting project. The source code seems to be on sourceforge.net. I site once important, but now when I see it I either think "the project is most-likely dead" or "can this project be legit? Am I getting malware here?"
Pdfsandwich
11–20 of 65 posts
Re: Pdfsandwich
#12Re: Pdfsandwich
#13Re: Pdfsandwich
#14Could someone explain what this does? The explanation paragraph does not make sense to me grammatically.
Re: Pdfsandwich
#15Could someone explain what this does? The explanation paragraph does not make sense to me grammatically.
It would allow you to take a physically scanned document and create a PDF with selectable text you could copy+paste, search over, etc.
Re: Pdfsandwich
#16Once 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 said, it's not perfect, but still pretty awesome. Sometimes the spacing was off or it would confuse symbols like 1, I, or l. But these are minor and usually only on poorly scanned PDFs.
Re: Pdfsandwich
#17Could someone explain what this does? The explanation paragraph does not make sense to me grammatically.
ImageMagick to convert the pages to images
Tesseract-ocr by Google to transcribe the text in the images, which puts it’s output into singular pdf files
Pdfunite to stitch together the pdfs back into a whole file
I’m sure I’m missing a few, iirc it can call a tool that straightens the pages as well.
EDIT: Messed around and remembered the stuff:
where a.pdf is a 2 page PDF:
>convert a.pdf a.png
makes a-0.png and a-1.png
OCR's each image:
>for x in {0..1} ; do tesseract a-$x.png a_ocr-$x PDF ; done ;
combines them into 1 PDF:
>pdfunite a_ocr-{0..1}.pdf a_ocr_combined.pdf
Re: Pdfsandwich
#18Really interesting project. The source code seems to be on sourceforge.net. I site once important, but now when I see it I either think "the project is most-likely dead" or "can this project be legit? Am I getting malware here?"
SourceForge literally looks like one of those your-free-filez.ru style movie sites with all the fake download buttons. Same aesthetic. Just awful lol
Re: Pdfsandwich
#19Interesting. I've used ocrmypdf for this a lot - https://ocrmypdf.readthedocs.io/en/latest/
Looks great.. I'm just trying to find the Windows binary?
Re: Pdfsandwich
#20Not to get all technical, but the "Cube Rule of Food" would classify this project as "pdftoast", not "pdfsandwich": https://cuberule.com/