52 ImageAllocationFail = 1,
54 ImageUnsupportedFormat
68 const QString &fileName,
69 const QString &fileFormat = QString(
"PNG" ),
70 bool forceRaster =
false,
81 const QString &fileName,
82 const QString &fileFormat = QString(
"PNG" ),
83 bool forceRaster =
false,
98 void addAnnotations(
const QList<QgsAnnotation *> &annotations );
103 void addDecorations(
const QList<QgsMapDecoration *> &decorations );
132 void finished(
bool result )
override;
138 bool mErrored =
false;
143 std::unique_ptr< QgsMapRendererJob > mJob;
145 std::unique_ptr< QgsAbstractGeoPdfExporter > mGeoPdfExporter;
146 std::unique_ptr< QgsRenderedFeatureHandlerInterface > mRenderedFeatureHandler;
148 QPainter *mPainter =
nullptr;
149 QPainter *mDestPainter =
nullptr;
151 std::unique_ptr< QPdfWriter > mPdfWriter;
153 std::unique_ptr< QPainter > mTempPainter;
157 bool mForceRaster =
false;
158 bool mSaveWorldFile =
false;
159 bool mExportMetadata =
false;
160 bool mGeoPDF =
false;
163 QList< QgsAnnotation * > mAnnotations;
164 QList< QgsMapDecoration * > mDecorations;
165 QMap< QString, QString> mLayerIdToLayerNameMap;
166 QStringList mMapLayerOrder;