qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.61k stars 3.01k forks source link

Maps in report shrink if "print to raster" is activated #37461

Open anitagraser opened 4 years ago

anitagraser commented 4 years ago

Describe the bug

This bug seems to only affect the Reports tool (but NOT the layouts).

When using the "print to raster" option with 180dpi and exporting to PDF, the map shrinks. Here you can see the config in the report tool:

image

and here's the resulting PDF where the map is much smaller than the page:

image

Note that everything exports correctly if "print to raster" is deactivated.

How to Reproduce

The following project contains a report that can be used to reproduce the problem: https://www.dropbox.com/s/5mn8fr4eh1sd6ya/Projekt_report.zip?dl=0

  1. Go to Report editor
  2. Click on Group Walks - id section
  3. Click 'Edit' next to 'Include body'
  4. Enable 'print as raster' in the layout export settings
  5. Export as PDF

QGIS and OS versions

QGIS version 3.15.0-Master QGIS code revision 5686837363 Compiled against Qt 5.11.2 Running against Qt 5.11.2 Compiled against GDAL/OGR 3.2.0dev Running against GDAL/OGR 3.2.0dev Compiled against GEOS 3.8.1-CAPI-1.13.3 Running against GEOS 3.8.1-CAPI-1.13.3 Compiled against SQLite 3.29.0 Running against SQLite 3.29.0 PostgreSQL Client Version 11.5 SpatiaLite Version 4.3.0 QWT Version 6.1.3 QScintilla2 Version 2.10.8 Compiled against PROJ 7.1.0 Running against PROJ Rel. 7.1.0, August 1st, 2020 OS Version Windows 10 (10.0) This copy of QGIS writes debugging output. Active python plugins DataPlotly; EasyCustomLabeling; GeoCoding; Hqgis; IPyConsole; MemoryLayerSaver; mmqgis; networks; Offline-MapMatching; ORStools; pluginbuilder3; PluginLoadTimes; plugin_reloader; processing_edgebundling; processing_r; processing_trajectory; qconsolidate3; Qgis2threejs; qgis2web; QuickOSM; QuickWKT; quick_map_services; timemanager; db_manager; MetaSearch; processing

Additional context

Pedro-Murteira commented 2 years ago

Still true on QGIS 3.16,15 and 3.22.2.