Open DEEPAK-KESWANI opened 6 years ago
Probably it should be better to declare a new OCR Transformer with your extra options similar to
and then inject this new bean to your TransformWorker at
Then just decide which to use in your Java code.
Thanks a lot for your quick response and inputs. It worked for me. :)
Hi,
I want to enable auto rotation only on 1st version and disable it for rest of the version.
I'm using OCRMyPDF tool with following property in alfresco-global.properties file.
# OCRmyPDF ocr.extra.commands=--verbose 1 --force-ocr -l eng --output-type pdf
The above setting should apply for all versions of documents except 1.0.
I'm trying to enable auto rotation for 1.0 version by adding below code in properties Map but it's not considering. Any help is appreciated.
For 1.0 version, the ocr.extra.commands property should be: ocr.extra.commands=--verbose 1 --force-ocr -l eng --output-type pdf --rotate-pages --rotate-pages-threshold 1
Thanks.