Skip to content
Permalink
Browse files

Backport consider 'print as raster' setting for pdf print in server

  • Loading branch information
mhugent committed Jan 9, 2019
1 parent b557cc2 commit 5aed4d79ae93df1a2059cacecea90c8adf94f1ee
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/server/services/wms/qgswmsrenderer.cpp
@@ -441,6 +441,8 @@ namespace QgsWms
}
// Draw selections
exportSettings.flags |= QgsLayoutRenderContext::FlagDrawSelection;
// Print as raster
exportSettings.rasterizeWholeImage = layout->customProperty( QStringLiteral( "rasterize" ), false ).toBool();
// Export all pages
QgsLayoutExporter exporter( layout.get() );
exporter.exportToPdf( tempOutputFile.fileName(), exportSettings );

0 comments on commit 5aed4d7

Please sign in to comment.
You can’t perform that action at this time.