Skip to content
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

Enhancement: Add paper size format options for PDF #155

Open
phicote opened this issue Mar 17, 2023 · 0 comments
Open

Enhancement: Add paper size format options for PDF #155

phicote opened this issue Mar 17, 2023 · 0 comments

Comments

@phicote
Copy link

phicote commented Mar 17, 2023

First I have to say that I love the plugin, the developers have done a fantastic job and I use this tool every day. THANKS!

When exporting metadata to PDF, it would be really nice to be able to select between A4 and Letter paper sizes, which is the most common size in North America, rather than just A4. I know it is possible to change the scale of a pdf when printed, but the result gives very wide left/right margins.

from qgis.PyQt.QtCore import QLocale, QUrl, QSizeF
printer.setPaperSize(QSizeF(215.9,279.4), QPrinter.Millimeter)
printer.setPageMargins(20, 10, 20, 10, QPrinter.Millimeter)

@phicote phicote changed the title Add paper size format options for PDF Enhancement: Add paper size format options for PDF Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant