Debian Buster: ocrmypdf outdated #46
Copy link
Copy link
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Possibly, this wonderful tool can't be used in Debian Buster. It uses ocrmypdf 8.0.1 which issues warnings like
WARNING - 2: [tesseract] lots of diacritics - possibly poor OCR
This warning leaves the pdf alone / does not add the text layer.
The version 9.8.1 of Alpine works perfectly with the same input file.
Nextcloud log:
OCR for file /joerg.schulz/files/FDS Bau - Sanierung Haus Sonnenblick/Bauherr/Dokumentationen/Projektantrag-SoftwareAG2014.pdf not possible. Message: OCRmyPDF exited abnormally with exit-code 0. Message: WARNING - 4: [tesseract] lots of diacritics - possibly poor OCR WARNING - 2: [tesseract] lots of diacritics - possibly poor OCR
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Activity
R0Wi commentedon Jan 28, 2021
Hi @joergmschulz, a shame that you're experiencing issues with
OCRmyPDF. As a first information we'd like to mention that we are not willing to replace the tool under the hood. We tried some other tools and packages to achieve the same result earlier which leads to even more problems. So generally speaking we found thatOCRmyPDFis the best tool to achieve exactly what we want to do with this app in combination with PDF files.In your case i see the following options:
OCRmyPDFoutside the regular package source. You could give a try on the python installation mentioned here for Ubuntu 18.04.ocrmypdf inpup.pdf output.pdfon the commandline. If it just outputs some warnings but the output is generated properly we could think of a more fault tolerant handling inside the app. Please give us some feedback on this or attach the mentioned PDF file if this is possible.@bahnwaerter anything to add on this?
Btw.: i'm also using Debian Buster with
OCRmyPDF8.0.1 installed and i did not see similar errors. So it also might be related to the PDF files you want to be processed.joergmschulz commentedon Jan 28, 2021
attaching one file here // doesn't work, but: https://cloud.faudin.de/s/e2AbYxXR9njcZRC , password dddjjj
messages:
joergmschulz commentedon Jan 28, 2021
confirming: when I install the OCRmyPDF version as documented by @R0Wi above, all works perfectly. Maybe that should go into the README?
R0Wi commentedon Jan 28, 2021
Glad to hear that everything works as expected now. I'll leave this open until we added the info to the README :-)
joergmschulz commentedon Jan 28, 2021
see #47
R0Wi commentedon Jan 28, 2021
Thanks for the PR @joergmschulz !