Skip to content
Discussion options

You must be logged in to vote

So you used page.set_rotation(90).
The next steps all depend on what you want to do with the page.

  1. All viewers will show the page rotated - just as if the former bottom-left now is top-left.
  2. If you you however extract things from the page (text, drawings, images), the accompanying coordinates are all as if the page were not rotated.
  3. If you insert stuff on that page, the coordinates you provide are also assumed to be unrotated! Internally, the page will be derotated before insertion and then rotated back.
  4. If you wish to insert respecting rotation, you must convert coordinates first, using page.derotation_matrix. If inserting e.g. text, also remember to insert it rotated (if that is what y…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by heyhumor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #1589 on February 07, 2022 09:41.