How to ensure the coordinate origin of a PDF page remains stable? #3937
Unanswered
TCHSDUFH
asked this question in
Looking for help
Replies: 1 comment
-
You can find out whether a page is rotated ( I have no idea how to determine a left-right or top-bottom flip however. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, developers! I encountered an issue while using PyMuPDF. Some pages in my PDF document have been rotated or flipped upside down. When I try to add page numbers to the bottom-left corner, the position calculation still uses the coordinate origin from before the page was rotated, which causes the page numbers to be placed in the wrong position. How can I ensure that the coordinate origin is always at the top-left corner, or are there other ways to make sure the page number is inserted at a stable position? My demo code⬇
Beta Was this translation helpful? Give feedback.
All reactions