From e5587ef10a5edd518440453d4f359677b651cbfa Mon Sep 17 00:00:00 2001 From: rldhont Date: Thu, 23 May 2024 12:33:54 +0200 Subject: [PATCH 1/2] [Bugfix] Rasterize PDF output The atlas layout can contain a custom property to rasterize PDF. Funded by geolab.re --- atlasprint/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atlasprint/core.py b/atlasprint/core.py index 2dee684..6993e9f 100755 --- a/atlasprint/core.py +++ b/atlasprint/core.py @@ -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 From 985e3635cdd06c21093c5a9dbe5315297fe70a94 Mon Sep 17 00:00:00 2001 From: rldhont Date: Thu, 23 May 2024 12:35:21 +0200 Subject: [PATCH 2/2] Update tests to QGIS 3.22 --- tests/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 3ef2229..a0260f6 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,16 +1,16 @@ SHELL:=bash -# -# wmts plugin makefile -# COMMITID=$(shell git rev-parse --short HEAD) +REGISTRY_URL ?= 3liz + + ifdef REGISTRY_URL REGISTRY_PREFIX=$(REGISTRY_URL)/ endif # Qgis version flavor -FLAVOR:=3.16 +FLAVOR:=3.22 BECOME_USER:=$(shell id -u)