Skip to content

Commit

Permalink
[Bugfix] Rasterize PDF output
Browse files Browse the repository at this point in the history
The atlas layout can contain a custom property to rasterize PDF.

Funded by geolab.re
  • Loading branch information
rldhont committed May 23, 2024
1 parent d59358b commit 93f5de2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions atlasprint/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ def print_layout(
error = result_message(result)
else:
# Default to PDF
# PDF settings
if atlas_layout:
settings.rasterizeWholeImage = atlas_layout.customProperty( "rasterize" , False )
# Export
result, error = QgsLayoutExporter.exportToPdf(atlas or report_layout, str(export_path), settings)
# Let's override error message
_ = error
Expand Down

0 comments on commit 93f5de2

Please sign in to comment.