QGIS API Documentation 4.1.0-Master (376402f9aeb)
Loading...
Searching...
No Matches
QgsLayoutPdfExportOptionsDialog Class Reference

A dialog for customizing the properties of an exported PDF file from a layout. More...

#include <qgslayoutpdfexportoptionsdialog.h>

Inheritance diagram for QgsLayoutPdfExportOptionsDialog:

Public Member Functions

 QgsLayoutPdfExportOptionsDialog (QWidget *parent=nullptr, bool allowGeospatialPdfExport=true, const QString &geospatialPdfReason=QString(), const QStringList &geospatialPdfLayerOrder=QStringList(), Qt::WindowFlags flags=Qt::WindowFlags())
 Constructor for QgsLayoutPdfExportOptionsDialog.
void disableUseLayerTreeConfig ()
 Disables the option to follow QGIS layer tree configuration from the GUI.
void enableGeoreferencingOptions (bool enabled)
 Sets whether to enable georeferencing options.
bool exportGeospatialPdf () const
 Returns whether Geospatial PDF export is enabled.
QStringList exportThemes () const
 Returns the list of export themes.
bool forceVector () const
 Returns whether vector output is being forced.
bool geometriesSimplified () const
 Returns whether geometry simplification is enabled.
bool georeferencingEnabled () const
 Returns whether georeferencing is enabled.
QStringList geospatialPdfGroupOrder () const
 Returns a list of groups in the desired order they should appear in a generated Geospatial PDF file.
QStringList geospatialPdfLayerOrder () const
 Returns a list of map layer IDs in the desired order they should appear in a generated Geospatial PDF file.
bool losslessImageExport () const
 Returns whether lossless image compression is enabled.
bool metadataEnabled () const
 Returns whether metadata is enabled.
bool openAfterExporting () const
 Returns whether the pdf should be opened after exporting it.
bool rasterTilingDisabled () const
 Returns whether raster tiling is disabled.
void setExportGeospatialPdf (bool enabled)
 Sets whether to export a Geospatial PDF.
void setExportThemes (const QStringList &themes)
 Sets the list of export themes.
void setForceVector (bool force)
 Set whether to force vector output.
void setGeometriesSimplified (bool enabled)
 Sets whether to simplify geometries.
void setGeoreferencingEnabled (bool enabled)
 Sets whether to enable georeferencing.
void setLosslessImageExport (bool enabled)
 Sets whether to use lossless image compression.
void setMetadataEnabled (bool enabled)
 Sets whether to enable metadata.
void setOpenAfterExporting (bool enabled)
 Sets whether to open the pdf after exporting it.
void setRasterTilingDisabled (bool disabled)
 Sets whether to disable raster tiling.
void setTextRenderFormat (Qgis::TextRenderFormat format)
 Sets the text render format.
void setUseLayerTreeConfig (bool enabled)
 Sets whether to use QGIS layer tree config to export a Geospatial PDF.
Qgis::TextRenderFormat textRenderFormat () const
 Returns the current text render format.
bool useLayerTreeConfig () const
 Returns whether to use QGIS layer tree config to export a Geospatial PDF.

Detailed Description

A dialog for customizing the properties of an exported PDF file from a layout.

Note
This class is not a part of public API
Since
QGIS 3.12

Definition at line 42 of file qgslayoutpdfexportoptionsdialog.h.

Constructor & Destructor Documentation

◆ QgsLayoutPdfExportOptionsDialog()

QgsLayoutPdfExportOptionsDialog::QgsLayoutPdfExportOptionsDialog ( QWidget * parent = nullptr,
bool allowGeospatialPdfExport = true,
const QString & geospatialPdfReason = QString(),
const QStringList & geospatialPdfLayerOrder = QStringList(),
Qt::WindowFlags flags = Qt::WindowFlags() )

Constructor for QgsLayoutPdfExportOptionsDialog.

Parameters
parentparent widget
allowGeospatialPdfExportset to false if geospatial PDF export is blocked
geospatialPdfReasonset to a descriptive translated string explaining why geospatial PDF export is not available if applicable
geospatialPdfLayerOrderoptional layer ID order list for layers in the geospatial PDF file. Any layers not present in this list will instead be appended to the end of the geospatial PDF layer list
flagswindow flags

Definition at line 38 of file qgslayoutpdfexportoptionsdialog.cpp.

Member Function Documentation

◆ disableUseLayerTreeConfig()

void QgsLayoutPdfExportOptionsDialog::disableUseLayerTreeConfig ( )

Disables the option to follow QGIS layer tree configuration from the GUI.

That option should be disabled if all map items in the layout follow either map themes or locked layers.

Definition at line 229 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ enableGeoreferencingOptions()

void QgsLayoutPdfExportOptionsDialog::enableGeoreferencingOptions ( bool enabled)

Sets whether to enable georeferencing options.

Definition at line 141 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ exportGeospatialPdf()

bool QgsLayoutPdfExportOptionsDialog::exportGeospatialPdf ( ) const

Returns whether Geospatial PDF export is enabled.

Definition at line 204 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ exportThemes()

QStringList QgsLayoutPdfExportOptionsDialog::exportThemes ( ) const

Returns the list of export themes.

Definition at line 251 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ forceVector()

bool QgsLayoutPdfExportOptionsDialog::forceVector ( ) const

Returns whether vector output is being forced.

Definition at line 136 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ geometriesSimplified()

bool QgsLayoutPdfExportOptionsDialog::geometriesSimplified ( ) const

Returns whether geometry simplification is enabled.

Definition at line 181 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ georeferencingEnabled()

bool QgsLayoutPdfExportOptionsDialog::georeferencingEnabled ( ) const

Returns whether georeferencing is enabled.

Definition at line 151 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ geospatialPdfGroupOrder()

QStringList QgsLayoutPdfExportOptionsDialog::geospatialPdfGroupOrder ( ) const

Returns a list of groups in the desired order they should appear in a generated Geospatial PDF file.

Definition at line 280 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ geospatialPdfLayerOrder()

QStringList QgsLayoutPdfExportOptionsDialog::geospatialPdfLayerOrder ( ) const

Returns a list of map layer IDs in the desired order they should appear in a generated Geospatial PDF file.

Definition at line 270 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ losslessImageExport()

bool QgsLayoutPdfExportOptionsDialog::losslessImageExport ( ) const

Returns whether lossless image compression is enabled.

Definition at line 191 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ metadataEnabled()

bool QgsLayoutPdfExportOptionsDialog::metadataEnabled ( ) const

Returns whether metadata is enabled.

Definition at line 161 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ openAfterExporting()

bool QgsLayoutPdfExportOptionsDialog::openAfterExporting ( ) const

Returns whether the pdf should be opened after exporting it.

Definition at line 300 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ rasterTilingDisabled()

bool QgsLayoutPdfExportOptionsDialog::rasterTilingDisabled ( ) const

Returns whether raster tiling is disabled.

Definition at line 171 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ setExportGeospatialPdf()

void QgsLayoutPdfExportOptionsDialog::setExportGeospatialPdf ( bool enabled)

Sets whether to export a Geospatial PDF.

Definition at line 196 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ setExportThemes()

void QgsLayoutPdfExportOptionsDialog::setExportThemes ( const QStringList & themes)

Sets the list of export themes.

Definition at line 238 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ setForceVector()

void QgsLayoutPdfExportOptionsDialog::setForceVector ( bool force)

Set whether to force vector output.

Definition at line 131 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ setGeometriesSimplified()

void QgsLayoutPdfExportOptionsDialog::setGeometriesSimplified ( bool enabled)

Sets whether to simplify geometries.

Definition at line 176 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ setGeoreferencingEnabled()

void QgsLayoutPdfExportOptionsDialog::setGeoreferencingEnabled ( bool enabled)

Sets whether to enable georeferencing.

Definition at line 146 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ setLosslessImageExport()

void QgsLayoutPdfExportOptionsDialog::setLosslessImageExport ( bool enabled)

Sets whether to use lossless image compression.

Definition at line 186 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ setMetadataEnabled()

void QgsLayoutPdfExportOptionsDialog::setMetadataEnabled ( bool enabled)

Sets whether to enable metadata.

Definition at line 156 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ setOpenAfterExporting()

void QgsLayoutPdfExportOptionsDialog::setOpenAfterExporting ( bool enabled)

Sets whether to open the pdf after exporting it.

Definition at line 295 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ setRasterTilingDisabled()

void QgsLayoutPdfExportOptionsDialog::setRasterTilingDisabled ( bool disabled)

Sets whether to disable raster tiling.

Definition at line 166 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ setTextRenderFormat()

void QgsLayoutPdfExportOptionsDialog::setTextRenderFormat ( Qgis::TextRenderFormat format)

Sets the text render format.

Definition at line 121 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ setUseLayerTreeConfig()

void QgsLayoutPdfExportOptionsDialog::setUseLayerTreeConfig ( bool enabled)

Sets whether to use QGIS layer tree config to export a Geospatial PDF.

If disabled, a custom configuration will be used.

Definition at line 212 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ textRenderFormat()

Qgis::TextRenderFormat QgsLayoutPdfExportOptionsDialog::textRenderFormat ( ) const

Returns the current text render format.

Definition at line 126 of file qgslayoutpdfexportoptionsdialog.cpp.

◆ useLayerTreeConfig()

bool QgsLayoutPdfExportOptionsDialog::useLayerTreeConfig ( ) const

Returns whether to use QGIS layer tree config to export a Geospatial PDF.

Definition at line 221 of file qgslayoutpdfexportoptionsdialog.cpp.


The documentation for this class was generated from the following files: