Skip to content

Commit

Permalink
Consider 'print as raster' setting for pdf print in server
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent authored and nyalldawson committed Jan 9, 2019
1 parent 41757c6 commit f1be811
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/services/wms/qgswmsrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,9 @@ 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() );
if ( atlas )
Expand Down

0 comments on commit f1be811

Please sign in to comment.