Bug 17195

Summary: pdfinfo prints unrotated dimensions for landscape pages
Product: poppler Reporter: Ilmari Heikkinen <ilmari.heikkinen>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: minor    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Ilmari Heikkinen 2008-08-18 19:20:04 UTC
Calling pdfinfo on a PDF with landscape orientation prints the unrotated page dimensions and doesn't tell that the page is rotated.

Proposed fix:

poppler/utils/pdfinfo.cc should use doc->getPageRotate(pg) to either print whether the page is rotated or to swap w and h.

Here's a patch that does w-h swapping:
http://github.com/kig/poppler/commit/1be66974479781f84fbb6872573bb2febdc1ad60
Comment 1 GitLab Migration User 2018-08-21 10:34:12 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/266.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.