-
Hello JorjMcKie, First of all congrats with creating the pymupdf package, i'm very impressed by its speed. I'm trying to build a rescale function that rescales the pages in a pdf to A4 format. Maybe it is a rounding error somewhere or I am using the wrong dimensions.
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Make a higher quality image from the input page: Multiply the scale value with some factor > 1, eg take matrix * 2 instead. The aspect ratio will be kept, but you will have 4 times more pixels per page point in this case. I'm not sure why you chose the term "rescale": you are aware that the output pages will consist of images only? If you look at them in a PDF reader and zoom, you will see pixeling at some magnification. |
Beta Was this translation helpful? Give feedback.
Make a higher quality image from the input page: Multiply the scale value with some factor > 1, eg take matrix * 2 instead. The aspect ratio will be kept, but you will have 4 times more pixels per page point in this case.
I'm not sure why you chose the term "rescale": you are aware that the output pages will consist of images only? If you look at them in a PDF reader and zoom, you will see pixeling at some magnification.