The deskew option is not working/having any effect on the output file
What am I doing wrong?
Command: ocrmypdf --deskew C:\temp\2Q9I8F.jpg C:\temp\test.pdf
I've read that deskew only works if there is no text.
deskew will not run on a PDF that contains text. If the PDF contains text we exit with an error.
However I tried with a PDF which does not have text, still the option deskew shows no effect. I tried different tilt angles from settle (5-10°) to extreme like 45° ... both results remain skewed.
Even when using an image as input file (tried jpg and tif), the result remains skewed.
I tried with different files, all are not working. So I guess it is not file specific, hoewever I've added an example.
Result:
I cannot spot any error during processing. When using the verbose parameter, the output states: Deskew angle: 0.000
So the scew angle isn't determined correctly or determined at all. What can I do to further investigate this issue?
Thanks in advance.
Source: ocrmypdf/OCRmyPDF