PyMuPDF – Prevent PDF pages from being auto cropped
I’m using PyMuPDF to process a PDF and then re-save it, but the resulting file loses the original page orientations and crop boxes. Some pages in the original PDF are larger or differently oriented (e.g., rotated or with custom crop regions), but after calling pdf.save(), all pages become uniformly sized and oriented.