QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
A dialog for customizing the properties of an exported PDF file from a layout. More...
#include <qgslayoutpdfexportoptionsdialog.h>
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 | 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 | setUseOgcBestPracticeFormat (bool enabled) |
Sets whether to use OGC best-practice format. | |
Qgis::TextRenderFormat | textRenderFormat () const |
Returns the current text render format. | |
bool | useOgcBestPracticeFormat () const |
Returns whether use of OGC best-practice format is enabled. | |
A dialog for customizing the properties of an exported PDF file from a layout.
Definition at line 39 of file qgslayoutpdfexportoptionsdialog.h.
QgsLayoutPdfExportOptionsDialog::QgsLayoutPdfExportOptionsDialog | ( | QWidget * | parent = nullptr , |
bool | allowGeospatialPdfExport = true , |
||
const QString & | geospatialPdfReason = QString() , |
||
const QStringList & | geospatialPdfLayerOrder = QStringList() , |
||
Qt::WindowFlags | flags = Qt::WindowFlags() |
||
) |
Constructor for QgsLayoutPdfExportOptionsDialog.
parent | parent widget |
allowGeospatialPdfExport | set to false if geospatial PDF export is blocked |
geospatialPdfReason | set to a descriptive translated string explaining why geospatial PDF export is not available if applicable |
geospatialPdfLayerOrder | optional 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 |
flags | window flags |
Definition at line 32 of file qgslayoutpdfexportoptionsdialog.cpp.
void QgsLayoutPdfExportOptionsDialog::enableGeoreferencingOptions | ( | bool | enabled | ) |
Sets whether to enable georeferencing options.
Definition at line 132 of file qgslayoutpdfexportoptionsdialog.cpp.
bool QgsLayoutPdfExportOptionsDialog::exportGeospatialPdf | ( | ) | const |
Returns whether Geospatial PDF export is enabled.
Definition at line 195 of file qgslayoutpdfexportoptionsdialog.cpp.
QStringList QgsLayoutPdfExportOptionsDialog::exportThemes | ( | ) | const |
Returns the list of export themes.
Definition at line 236 of file qgslayoutpdfexportoptionsdialog.cpp.
bool QgsLayoutPdfExportOptionsDialog::forceVector | ( | ) | const |
Returns whether vector output is being forced.
Definition at line 127 of file qgslayoutpdfexportoptionsdialog.cpp.
bool QgsLayoutPdfExportOptionsDialog::geometriesSimplified | ( | ) | const |
Returns whether geometry simplification is enabled.
Definition at line 172 of file qgslayoutpdfexportoptionsdialog.cpp.
bool QgsLayoutPdfExportOptionsDialog::georeferencingEnabled | ( | ) | const |
Returns whether georeferencing is enabled.
Definition at line 142 of file qgslayoutpdfexportoptionsdialog.cpp.
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 265 of file qgslayoutpdfexportoptionsdialog.cpp.
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 255 of file qgslayoutpdfexportoptionsdialog.cpp.
bool QgsLayoutPdfExportOptionsDialog::losslessImageExport | ( | ) | const |
Returns whether lossless image compression is enabled.
Definition at line 182 of file qgslayoutpdfexportoptionsdialog.cpp.
bool QgsLayoutPdfExportOptionsDialog::metadataEnabled | ( | ) | const |
Returns whether metadata is enabled.
Definition at line 152 of file qgslayoutpdfexportoptionsdialog.cpp.
bool QgsLayoutPdfExportOptionsDialog::openAfterExporting | ( | ) | const |
Returns whether the pdf should be opened after exporting it.
Definition at line 285 of file qgslayoutpdfexportoptionsdialog.cpp.
bool QgsLayoutPdfExportOptionsDialog::rasterTilingDisabled | ( | ) | const |
Returns whether raster tiling is disabled.
Definition at line 162 of file qgslayoutpdfexportoptionsdialog.cpp.
void QgsLayoutPdfExportOptionsDialog::setExportGeospatialPdf | ( | bool | enabled | ) |
Sets whether to export a Geospatial PDF.
Definition at line 187 of file qgslayoutpdfexportoptionsdialog.cpp.
void QgsLayoutPdfExportOptionsDialog::setExportThemes | ( | const QStringList & | themes | ) |
Sets the list of export themes.
Definition at line 223 of file qgslayoutpdfexportoptionsdialog.cpp.
void QgsLayoutPdfExportOptionsDialog::setForceVector | ( | bool | force | ) |
Set whether to force vector output.
Definition at line 122 of file qgslayoutpdfexportoptionsdialog.cpp.
void QgsLayoutPdfExportOptionsDialog::setGeometriesSimplified | ( | bool | enabled | ) |
Sets whether to simplify geometries.
Definition at line 167 of file qgslayoutpdfexportoptionsdialog.cpp.
void QgsLayoutPdfExportOptionsDialog::setGeoreferencingEnabled | ( | bool | enabled | ) |
Sets whether to enable georeferencing.
Definition at line 137 of file qgslayoutpdfexportoptionsdialog.cpp.
void QgsLayoutPdfExportOptionsDialog::setLosslessImageExport | ( | bool | enabled | ) |
Sets whether to use lossless image compression.
Definition at line 177 of file qgslayoutpdfexportoptionsdialog.cpp.
void QgsLayoutPdfExportOptionsDialog::setMetadataEnabled | ( | bool | enabled | ) |
Sets whether to enable metadata.
Definition at line 147 of file qgslayoutpdfexportoptionsdialog.cpp.
void QgsLayoutPdfExportOptionsDialog::setOpenAfterExporting | ( | bool | enabled | ) |
Sets whether to open the pdf after exporting it.
Definition at line 280 of file qgslayoutpdfexportoptionsdialog.cpp.
void QgsLayoutPdfExportOptionsDialog::setRasterTilingDisabled | ( | bool | disabled | ) |
Sets whether to disable raster tiling.
Definition at line 157 of file qgslayoutpdfexportoptionsdialog.cpp.
void QgsLayoutPdfExportOptionsDialog::setTextRenderFormat | ( | Qgis::TextRenderFormat | format | ) |
Sets the text render format.
Definition at line 112 of file qgslayoutpdfexportoptionsdialog.cpp.
void QgsLayoutPdfExportOptionsDialog::setUseOgcBestPracticeFormat | ( | bool | enabled | ) |
Sets whether to use OGC best-practice format.
Definition at line 203 of file qgslayoutpdfexportoptionsdialog.cpp.
Qgis::TextRenderFormat QgsLayoutPdfExportOptionsDialog::textRenderFormat | ( | ) | const |
Returns the current text render format.
Definition at line 117 of file qgslayoutpdfexportoptionsdialog.cpp.
bool QgsLayoutPdfExportOptionsDialog::useOgcBestPracticeFormat | ( | ) | const |
Returns whether use of OGC best-practice format is enabled.
Definition at line 214 of file qgslayoutpdfexportoptionsdialog.cpp.