Question : Why does rotating page doesn't change mediaBox dimensions ? #704
Replies: 5 comments 16 replies
-
Similarly, I am rotating pages (using If I write a rotate page to disk, then read it back in, the page looks rotated to the eye, but the annotations still have their original coordinates. The expected behavior is that mediaBox, CropBox, Annotations, etc. have coordinates that reflect the current orientation/rotation of the page. |
Beta Was this translation helpful? Give feedback.
-
I am having this same issue, hoping to bring this back up if there is any input! |
Beta Was this translation helpful? Give feedback.
-
I am having this same issue, hoping to bring this back up if there is any input! |
Beta Was this translation helpful? Give feedback.
-
@maimaik05 |
Beta Was this translation helpful? Give feedback.
-
This is still a problem. In below screenshots you can see, first one is original pdf of dimension 792x612 But even after rotating, the pdf is simply rotated to eye but dimensions are maintained |
Beta Was this translation helpful? Give feedback.
-
I have a document with some pages being landscape, and the others being portrait.
I rotate all landscape pages to portrait (by checking mediaBox parameters and comparing x and y)
Then, I want to crop the pages in order to save only the top of the pages. But when i tried to crop a page that I have rotated, then everything goes sideways.
Actualy, the mediaBox parameters doesn't change between before and after rotating, while I think it should invert x and y sizes ?
Beta Was this translation helpful? Give feedback.
All reactions