-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
The Disable tiled raster layer exports option doesn't work:
This happens becauserasterize is not in the list of layout.customProperties()
if layout.customProperty("rasterize") in ["true", True]:
exportSettings.rasterizeWholeImage = True
Here is full list of layout.customProperties():
layout.customProperties() = ['atlasRasterFormat',
'forceVector',
'imageAntialias',
'imageCropMarginBottom',
'imageCropMarginLeft',
'imageCropMarginRight',
'imageCropMarginTop',
'imageCropToContents',
'pdfAppendGeoreference',
'pdfCreateGeoPdf',
'pdfDisableRasterTiles',
'pdfExportThemes',
'pdfIncludeMetadata',
'pdfLayerOrder',
'pdfLosslessImages',
'pdfOgcBestPracticeFormat',
'pdfSimplify',
'pdfTextFormat',
'singleFile',
'variableNames',
'variableValues']
So if you replace rasterize with pdfDisableRasterTiles it will work as expected.
https://github.com/DelazJ/MapsPrinter/blob/master/MapsPrinter/processor.py
if layout.customProperty("pdfDisableRasterTiles") in ["true", True]:
exportSettings.rasterizeWholeImage = True