We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mediabox
Currently, the mediabox expansion is broken.
The bug is caused by these lines of code:
pypdf/pypdf/_page.py
Lines 1658 to 1662 in 9047079
Which environment were you using when you encountered the problem?
$ python -m platform macOS-14.0-x86_64-i386-64bit $ python -c "import pypdf;print(pypdf._debug_versions)" pypdf==3.15.5, crypt_provider=('cryptography', '39.0.1'), PIL=10.0.1
This is a minimal, complete example that shows the issue:
from pypdf import PdfWriter, PdfReader, Transformation reader = PdfReader("input.pdf") writer = PdfWriter() transformation = Transformation().rotate(175) for page_box in reader.pages: page_box.add_transformation(transformation, expand=True) writer.add_page(page_box) with open("output.pdf", "wb") as f: writer.write(f)
The text was updated successfully, but these errors were encountered:
BUG: Mediabox expansion size when applying non-right angle rotation (#…
03bce94
…2282) Fixes #2281
Successfully merging a pull request may close this issue.
mediabox
coordinates as needed after the rotation.Currently, the
mediabox
expansion is broken.The bug is caused by these lines of code:
pypdf/pypdf/_page.py
Lines 1658 to 1662 in 9047079
Environment
Which environment were you using when you encountered the problem?
Code + PDF
This is a minimal, complete example that shows the issue:
The text was updated successfully, but these errors were encountered: