mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2026-05-05 13:16:55 -04:00
Commit1327ab3introduced a fix for a regression, which was reported in #581, #634. It appears that the actual cause of this issue was default parameters to rasterize_pdf_page in pluggy not working as expected, causing a default rotation=0 even when a rotation was needed. As such the OCR image was generated with the wrong orientation, causing the initial regression and fix in commit1327ab3. Now that the real problem is identified, it's apparent that the logic prior to1327ab3was found and we can revert to1327ab3since it fixes all known cases including #658. This reverts1327ab3except for retaining improves to rotation output.