QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgslayoutgeopdfexporter.h>
Public Member Functions | |
QgsLayoutGeoPdfExporter (QgsLayout *layout) | |
Constructor for QgsLayoutGeoPdfExporter, associated with the specified layout. More... | |
~QgsLayoutGeoPdfExporter () override | |
QMap< QString, QString > | customLayerTreeGroups () const |
Returns any custom layer tree groups defined in the layer's settings. More... | |
QMap< QString, bool > | initialLayerVisibility () const |
Optional map of map layer ID to initial visibility state. More... | |
QStringList | layerOrder () const |
Optional list of map layer IDs in the order they should be shown in the generated GeoPDF layer tree. More... | |
![]() | |
QgsAbstractGeoPdfExporter ()=default | |
Constructor for QgsAbstractGeoPdfExporter. More... | |
virtual | ~QgsAbstractGeoPdfExporter ()=default |
QString | errorMessage () |
Returns the last error message encountered during the export. More... | |
bool | finalize (const QList< QgsAbstractGeoPdfExporter::ComponentLayerDetail > &components, const QString &destinationFile, const ExportDetails &details) |
To be called after the rendering operation is complete. More... | |
QString | generateTemporaryFilepath (const QString &filename) const |
Returns a file path to use for temporary files required for GeoPDF creation. More... | |
void | pushRenderedFeature (const QString &layerId, const QgsAbstractGeoPdfExporter::RenderedFeature &feature, const QString &group=QString()) |
Called multiple times during the rendering operation, whenever a feature associated with the specified layerId is rendered. More... | |
Friends | |
class | TestQgsLayoutGeoPdfExport |
Additional Inherited Members | |
![]() | |
static bool | compositionModeSupported (QPainter::CompositionMode mode) |
Returns true if the specified composition mode is supported for layers during GeoPDF exports. More... | |
static QString | geoPDFAvailabilityExplanation () |
Returns a user-friendly, translated string explaining why GeoPDF export support is not available on the current QGIS build (or an empty string if GeoPDF support IS available). More... | |
static bool | geoPDFCreationAvailable () |
Returns true if the current QGIS build is capable of GeoPDF support. More... | |
Handles GeoPDF export specific setup, cleanup and processing steps.
This class is a low level implementation detail only. Generally, you should use the high level interface exposed by QgsLayoutExporter instead.
Definition at line 47 of file qgslayoutgeopdfexporter.h.
QgsLayoutGeoPdfExporter::QgsLayoutGeoPdfExporter | ( | QgsLayout * | layout | ) |
Constructor for QgsLayoutGeoPdfExporter, associated with the specified layout.
Definition at line 111 of file qgslayoutgeopdfexporter.cpp.
|
override |
Definition at line 171 of file qgslayoutgeopdfexporter.cpp.
|
inline |
Returns any custom layer tree groups defined in the layer's settings.
Definition at line 61 of file qgslayoutgeopdfexporter.h.
|
inline |
Optional map of map layer ID to initial visibility state.
If a layer ID is not present in this, it will default to being initially visible when opening the PDF.
Definition at line 69 of file qgslayoutgeopdfexporter.h.
|
inline |
Optional list of map layer IDs in the order they should be shown in the generated GeoPDF layer tree.
Layer IDs earlier in the list will appear higher in the GeoPDF layer tree.
Definition at line 77 of file qgslayoutgeopdfexporter.h.
|
friend |
Definition at line 90 of file qgslayoutgeopdfexporter.h.