53 ImageAllocationFail = 1,
55 ImageUnsupportedFormat
69 const QString &fileName,
70 const QString &fileFormat = QString(
"PNG" ),
71 bool forceRaster =
false,
82 const QString &fileName,
83 const QString &fileFormat = QString(
"PNG" ),
84 bool forceRaster =
false,
99 void addAnnotations(
const QList<QgsAnnotation *> &annotations );
104 void addDecorations(
const QList<QgsMapDecoration *> &decorations );
133 void finished(
bool result )
override;
139 bool mErrored =
false;
144 std::unique_ptr< QgsMapRendererJob > mJob;
146 std::unique_ptr< QgsAbstractGeoPdfExporter > mGeoPdfExporter;
147 std::unique_ptr< QgsRenderedFeatureHandlerInterface > mRenderedFeatureHandler;
149 QPainter *mPainter =
nullptr;
150 QPainter *mDestPainter =
nullptr;
152 std::unique_ptr< QPdfWriter > mPdfWriter;
154 std::unique_ptr< QPainter > mTempPainter;
158 bool mForceRaster =
false;
159 bool mSaveWorldFile =
false;
160 bool mExportMetadata =
false;
161 bool mGeoPDF =
false;
164 QList< QgsAnnotation * > mAnnotations;
165 QList< QgsMapDecoration * > mDecorations;
166 QMap< QString, QString> mLayerIdToLayerNameMap;
167 QStringList mMapLayerOrder;