(PDF) Page.get_pixmap(). How to render mediabox? #1224
-
Hello, It seems (1) I find manually setting cropbox to mediabox (and rotation to 0) does work, (2) https://pymupdf.readthedocs.io/en/latest/page.html#Page.get_pixmap |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It does. This is intended, because that is what a PDF viewer would show, too. I will try to include this comment in the documentation. |
Beta Was this translation helpful? Give feedback.
It does. This is intended, because that is what a PDF viewer would show, too.
If you however do need the mediabox, then your way is certainly possible. There are no stability concerns. If you afterwards intend to do other work with the page based on the previous CropBox / rotation values, simply restore both.
I will try to include this comment in the documentation.
Thank you for bringing this up.