-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
to_pdf: allow to choose the quality #1697
Comments
Hi Felix. Petr V. P.S: I appologise for my English. |
Hi Petr, could you upload the Excel file from which you're printing? I am surprised by the size even with the current high quality. As the issue says, I'll add the option to chose the low-quality option which will definitely shrink size. To use another PDF print driver, we'd have to use the print method, see: #504 |
Hi Felix. xlwings.Book(r"D:/somepathtofile/docasny.xlsx").sheets[0].to_pdf() So you see that the file size is 410kB and from NitroPDF only 33kB... And the advice from #504 is not working for me too, because this error appears: I bought your book Python for Excel and nothing about PDF or .to_pdf() method is there :-( Maybe you will find why is the file so big ... Thank you. Petr V. |
Here are my findings:
import xlwings as xw
book = xw.Book(...)
book.sheets['Invoice'].api.PrintOut() |
Hi Felix. I will be patiently waiting you add a choose of quality, good luck. Now I don´t want to abuse your willingness. Petr V. P.S. your book is written very clearly, my English is not advanced (as you noticed), but I understand all. Great job. |
this is currently hardcoded to PrintQuality.
The text was updated successfully, but these errors were encountered: