Skip to content

Commit

Permalink
Merge pull request #70 from 3liz/rasterize-pdf
Browse files Browse the repository at this point in the history
 [Bugfix] Rasterize PDF output
  • Loading branch information
Gustry authored May 27, 2024
2 parents f0ff559 + 985e363 commit e4ae0cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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
6 changes: 3 additions & 3 deletions tests/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
SHELL:=bash
#
# wmts plugin makefile
#

COMMITID=$(shell git rev-parse --short HEAD)

REGISTRY_URL ?= 3liz


ifdef REGISTRY_URL
REGISTRY_PREFIX=$(REGISTRY_URL)/
endif
Expand Down

0 comments on commit e4ae0cb

Please sign in to comment.