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
Replace this: What happened? What were you trying to achieve?
Which environment were you using when you encountered the problem?
$ python -m platform # Windows-10-10.0.19044-SP0 $ python -c "import PyPDF2;print(PyPDF2.__version__)" # 2.2.0
This is a minimal, complete example that shows the issue:
from PyPDF2 import PdfReader, PdfWriter, Transformation reader = PdfReader('check.pdf') writer = PdfWriter() for page in reader.pages: page.add_transformation(Transformation().scale(0.5)) writer.add_page(page) writer.write('output.pdf')
Share here the PDF file(s) that cause the issue. The smaller they are, the better. Let us know if we may add them to our tests!
check.pdf
This is the complete Traceback I see:
output.pdf
By doing a scale with a factor of 0.5, I hope to scale the whole page, but the comments do not scale.
Source:
Result:
Hope:
Anyway, nice work, and thanks for your open source.
The text was updated successfully, but these errors were encountered:
BUG: Scale PDF annotations (#1479)
5fd96d0
PDF annotations - for example hyperlinks and comments - were not properly scaled when using the scale function. Fixes #1386
Successfully merging a pull request may close this issue.
Replace this: What happened? What were you trying to achieve?
Environment
Which environment were you using when you encountered the problem?
Code + PDF
This is a minimal, complete example that shows the issue:
Share here the PDF file(s) that cause the issue. The smaller they are, the
better. Let us know if we may add them to our tests!
check.pdf
Traceback
This is the complete Traceback I see:
output.pdf
By doing a scale with a factor of 0.5, I hope to scale the whole page, but the comments do not scale.
Source:
Result:
Hope:
Anyway, nice work, and thanks for your open source.
The text was updated successfully, but these errors were encountered: