-
-
Notifications
You must be signed in to change notification settings - Fork 975
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
(WIP) Make PDF Print/Export work without having to use Print Preview first #1188
base: master
Are you sure you want to change the base?
(WIP) Make PDF Print/Export work without having to use Print Preview first #1188
Conversation
Export PDF file works without having to use Print Preview first.
Many thanks for this contribution! |
@lordofbikes Thanks for your comment. I guess I should have tested more thoroughly! I tried this since the call to Anyway, I think I see the real problem. If you just use "print/export" without doing a print preview first, it will export the area around the center of the diagram. If there are no elements near the center, this exports an empty page. I attached a demo below to explain this (zipped OGV), done with master branch without this fix: At least with print preview, it does a "fit to page" at the start, which means the diagram's elements will be included on page, regardless of whether they are near the center or not. |
As for how to fix the issue properly, I can suggest either:
Anyway, feel free to close this branch. |
Don't worry, this is a real issue indeed and your efforts are more than welcome. If you can have a look at this, you're welcome. Then simply push modifications to this branch. |
I agree with @dellus. The process would be smoother and easier for newcomers. |
Still happening to me on 2.2.0... on Archlinux... i was getting white empty page when using File -> Export -> Export as PDF, when i did the same from print preview it worked ok... |
Fixes #751.
Exporting/Printing PDF files now works without having to use Print Preview first. Tested on Ubuntu 18.04.