Skip to content

rotation angle for non native pages are coming wrong #4308

Closed Answered by JorjMcKie
trinanjan12 asked this question in Looking for help
Discussion options

You must be logged in to vote

There is no such differentiation as between "native" or "non-native" PDFs.
Your example simply is a normal PDF showing a full-page image - obviously created by a scanner. The person operating the scanner didn't bother about how to dump the original on the scanner's glass and / or telling the scanner how to interpret the page orientation.
That's what you have.

You could look at what the page knows knows about the image(s) it displays. Depending on information delivered to it, the page might be aware of some transformation that has taken place to create its display, like so:

page.get_images()
[(4, 0, 1704, 2200, 1, 'DeviceGray', '', 'Im1', 'CCITTFaxDecode')]

page.get_image_info()
[{'number': 

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by trinanjan12
Comment options

You must be logged in to vote
1 reply
@trinanjan12
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not a bug not a bug / user error / unable to reproduce
2 participants
Converted from issue

This discussion was converted from issue #4307 on February 18, 2025 11:49.