-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
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
pdf.set_display_mode(zoom=...) not working #926
Comments
Thank you @macdeport for reporting this bug. I was able to reproduce it and your proposed fix seems to solve the problem. Do you want to submit a PR fixing the bug? We have documented our development guidelines if you want to take a look. |
Thank you for reporting this @macdeport We already have some unit tests regarding the An extra test could be added regarding this case. |
@Lucas-C @andersonhc I would have been happy to contribute more, and it could have been instructive for me, but I'm too busy at the moment... thank you for what you do and for your offer. |
No worries. I just opened a PR to fix the bug and added an automated test on this feature to reduce the chances of it breaking again in the future. Thanks again for taking the time to create the minimal code and investigate the fix. |
I discovered fpdf2 and tried it out. Thanks for this interesting library.
Describe the bug
Error details
I couldn't make
pdf.set_display_mode(zoom=25)
works to produce a PDF that opens at a scale of 25%...
Minimal code
Please include some minimal Python code reproducing your issue:
If you don't know how to build a minimal reproducible example, please check this tutorial: https://stackoverflow.com/help/minimal-reproducible-example
Environment
Please provide the following information:
fpdf2
version used: 2.7.5Proposed fix
If I'm not mistaken...
In output.py > _finalize_catalog() after :
add :
The text was updated successfully, but these errors were encountered: