Skip to content

Is there a difference between page.set_rotation(0) and page.remove_rotation() ? #3638

Answered by JorjMcKie
cmyers009 asked this question in Q&A
Discussion options

You must be logged in to vote

Absolutely!
Page.set-rotation() certainly changes the appearance! E.g. with the value 90, everything will appear rotated clockwise.
The attractive benefit of Page.remove_rotation() is that, given a page rotated by 90° clockwise and text being written on it in a way that is readable (= it has been written rotated by -90° relative to that page) in the normal way, top-left to bottom-right.
If you set the rotation of that page to 0, text will appear written from bottom-left to top-right. I.e. from:

to

Page.remove_rotation() prevent this from happening. The page will have rotation 0, but an exchanged width / height and no visual differences.

Replies: 1 comment

Comment options

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