martes, 30 de julio de 2024

ocrmypdf unix command tool

 This tool help me to ocr my pdf documents I'm running fine when joined the images and choose a resolution, but when resolution is high, file is heavy and program terminate itself. So after quick searching found this post about tool performance and the first post parameters for the tool helped me to do the job.

https://github.com/ocrmypdf/OCRmyPDF/issues/509

ocrmypdf --output-type pdf --jobs 8 --optimize 0 -l eng a.pdf b.pdf

May some of the paramters make t he work

--jobs - > per recommendation if you didn't set it it will use all the cores.

--optimize -> 0 no optimize

-l eng -> maybe I save some thinking time for the language