QGIS API Documentation  3.0.2-Girona (307d082)
Public Member Functions | Public Attributes | List of all members
QgsLayoutExporter::SvgExportSettings Struct Reference

Contains settings relating to exporting layouts to SVG. More...

#include <qgslayoutexporter.h>

Public Member Functions

 SvgExportSettings ()
 Constructor for SvgExportSettings. More...
 

Public Attributes

QgsMargins cropMargins
 Crop to content margins, in layout units. More...
 
bool cropToContents = false
 Set to true if image should be cropped so only parts of the layout containing items are exported. More...
 
double dpi = -1
 Resolution to export layout at. If dpi <= 0 the default layout dpi will be used. More...
 
bool exportAsLayers = false
 Set to true to export as a layered SVG file. More...
 
QgsLayoutRenderContext::Flags flags = 0
 Layout context flags, which control how the export will be created. More...
 
bool forceVectorOutput = false
 Set to true to force vector object exports, even when the resultant appearance will differ from the layout. More...
 

Detailed Description

Contains settings relating to exporting layouts to SVG.

Definition at line 349 of file qgslayoutexporter.h.

Constructor & Destructor Documentation

◆ SvgExportSettings()

QgsLayoutExporter::SvgExportSettings::SvgExportSettings ( )
inline

Constructor for SvgExportSettings.

Definition at line 352 of file qgslayoutexporter.h.

Member Data Documentation

◆ cropMargins

QgsMargins QgsLayoutExporter::SvgExportSettings::cropMargins

Crop to content margins, in layout units.

These margins will be added to the bounds of the exported layout if cropToContents is true.

Definition at line 378 of file qgslayoutexporter.h.

◆ cropToContents

bool QgsLayoutExporter::SvgExportSettings::cropToContents = false

Set to true if image should be cropped so only parts of the layout containing items are exported.

Definition at line 372 of file qgslayoutexporter.h.

◆ dpi

double QgsLayoutExporter::SvgExportSettings::dpi = -1

Resolution to export layout at. If dpi <= 0 the default layout dpi will be used.

Definition at line 357 of file qgslayoutexporter.h.

◆ exportAsLayers

bool QgsLayoutExporter::SvgExportSettings::exportAsLayers = false

Set to true to export as a layered SVG file.

Note that this option is considered experimental, and the generated SVG may differ from the expected appearance of the layout.

Definition at line 385 of file qgslayoutexporter.h.

◆ flags

QgsLayoutRenderContext::Flags QgsLayoutExporter::SvgExportSettings::flags = 0

Layout context flags, which control how the export will be created.

Definition at line 390 of file qgslayoutexporter.h.

◆ forceVectorOutput

bool QgsLayoutExporter::SvgExportSettings::forceVectorOutput = false

Set to true to force vector object exports, even when the resultant appearance will differ from the layout.

If false, some items may be rasterized in order to maintain their correct appearance in the output.

This option is mutually exclusive with rasterizeWholeImage.

Definition at line 366 of file qgslayoutexporter.h.


The documentation for this struct was generated from the following file: