AnsweredAssumed Answered

OCRmypdf

Question asked by denis10 on Jul 27, 2018
Latest reply on Jul 31, 2018 by denis10

Bonjour,

je viens d'installer le module OCRmypdf.

L'installation s'est fais correctement et lorsque je clique sur le bouton OCR, un message m'indique que le fichier est bien pris en compte.

Mais après ça, rien ne se passe. Dans les logs, il y a bien une erreur.

 

Execution result:
os: Linux
command: /usr/local/bin/ocrmypdf --verbose 1 --force-ocr -l eng+fra /opt/alfresco-community/tomcat/temp/Alfresco/OCRTransformWorker_source_7931939322038726826.pdf /opt/alfresco-community/tomcat/temp/Alfresco/OCRTransformWorker_source_7931939322038726826_ocr.pdf
succeeded: false
exit code: 1
out:
err: Traceback (most recent call last):
File "/usr/local/bin/ocrmypdf", line 7, in <module>
from ocrmypdf.__main__ import run_pipeline
File "/usr/local/lib/python3.5/dist-packages/ocrmypdf/__main__.py", line 70, in <module>
verify_python3_env(
at es.keensoft.alfresco.ocr.OCRTransformWorker.transform(OCRTransformWorker.java:86)
at es.keensoft.alfresco.ocr.OCRExtractAction.executeImplInternal(OCRExtractAction.java:181)
... 10 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 06270103 Failed to perform OCR transformation:
Execution result:
os: Linux
command: /usr/local/bin/ocrmypdf --verbose 1 --force-ocr -l eng+fra /opt/alfresco-community/tomcat/temp/Alfresco/OCRTransformWorker_source_7931939322038726826.pdf /opt/alfresco-community/tomcat/temp/Alfresco/OCRTransformWorker_source_7931939322038726826_ocr.pdf
succeeded: false
exit code: 1
out:
err: Traceback (most recent call last):
File "/usr/local/bin/ocrmypdf", line 7, in <module>
from ocrmypdf.__main__ import run_pipeline
File "/usr/local/lib/python3.5/dist-packages/ocrmypdf/__main__.py", line 70, in <module>
verify_python3_env(
at es.keensoft.alfresco.ocr.OCRTransformWorker.transform(OCRTransformWorker.java:79)
... 11 more

 

Je lance donc la commande manuellement en ligne de commande et le documents océrisé fonctionne bien.

Avez vous déjà eu ce problème ?

Outcomes