mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-02-08 00:21:11 +01:00
The current behavior for `getPagesOverview` assumes we want to only auto-rotate if: - `enablePrintAutoRotate` is `true` - `isFirstPagePortrait !== isPortraitOrientation(size)` This second check is what is breaking #9297. The two PDFs linked have a landscape orientation first page, as well as subsequent pages. Since `false === false`, we print portrait. Let's drop the comparison with `isFirstPagePortrait`, and print landscape if `!isPortraitOrientation(size)`. Fixes #9297.