-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 Export Size / Resolution Inconsistency #33465
Comments
I can't reproduce this -- using the attached project the generated PDFs are all correctly sized... |
Still happening with the test project: Is this a limitation of the outdated GDAL/QT shipped against the Windows build compared to what some can run on Linux?
|
I suspect the difference here is in how Adobe Reader interprets the page size vs the PDF reader I'm using... |
Hm, locally these files show the same (wrong) size in GSView, Foxit, and Adobe. And by locally I mean on my work and personal computers, both. |
If it can help, inspecting the provided pdf files you will find: Legacy_300DPI.pdf ISO3200_150DPI.pdf ISO3200_300DPI.pdf As you can see, the So, the page size for |
Moreover, I cannot see any geospatial information for the provided pdf (OGC or ISO3200 ones) using the Geospatial Location Tool in Adobe Reader XI. |
Is the over-scale output expected and part of the GeoPDF spec? |
I don't think so. For example, ArcMap 9.3.1 exports a correct size GeoPDF for whatever resolution the user wants. |
I've attempted to fix this, but am blocked by https://lists.osgeo.org/pipermail/gdal-dev/2020-September/052681.html -- it's possible there's an underlying GDAL bug at play here. Will report back any updates... |
Thanks for looking into this! |
…file Doing so causes incorrect page sizes for the generated PDF file. Refs qgis/QGIS#33465
original layout DPI This fixes the incorrect page size reported by Acrobat reader for generated GeoPDF files. Unfortunately it comes with a side-effect of limiting the resolution at which GDAL will read the GeoPDF files as a raster layer, but of the two issues the page size issue is more critical. Fixes qgis#33465
original layout DPI This fixes the incorrect page size reported by Acrobat reader for generated GeoPDF files. Unfortunately it comes with a side-effect of limiting the resolution at which GDAL will read the GeoPDF files as a raster layer, but of the two issues the page size issue is more critical. Fixes #33465
Describe the bug
GeoPDF export products (both ISO3200 and OGC styles) export at a page size that is scaled by a factor above the determined Page Size set in the Layout Manager.
For instance:
Project settings: GeoPDF ISO3200 - ANSI D (34 x 22 inches)
Export @ 150dpi: 70.83 x 45.83 inches
- 2.08 scale factor
Export @ 300dpi: 141.67 x 91.67 inches
- 4.16 scale factor
Project Settings: Legacy PDF - ANSI D (34 x 22 inches)
Export @ 300dpi: 34 x 22 inches
- 1.00 scale factor
How to Reproduce
QGIS and OS versions
Additional context
Seems to be the same issue as Issue #32931
Attachment
This attachment contains a sample QGIS project, as well as sample export PDFs, and screenshots for the settings used to generate each set of export PDFs.
PDF_TEST.7z.zip
The text was updated successfully, but these errors were encountered: