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
The
Disable tiled raster layer exportsoption doesn't work:This happens because
rasterizeis not in the list oflayout.customProperties()Here is full list of
layout.customProperties():So if you replace
rasterizewithpdfDisableRasterTilesit will work as expected.https://github.com/DelazJ/MapsPrinter/blob/master/MapsPrinter/processor.py