#1464·OCRmyPDF

The deskew option is not working/having any effect on the output file

Author: gordonBimigCreated Jan 26, 2025Updated Feb 5, 2026

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.

Image

Result:

2Q9I8F.pdf

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.