Skip to content

Commit 171ae62

Browse files
committed
Python bindings for printing
1 parent 717a1c3 commit 171ae62

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

python/core/qgscomposition.sip

+10
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,16 @@ class QgsComposition: QGraphicsScene
178178
/**Convenience function to create a QgsAddRemoveItemCommand, connect its signals and push it to the undo stack*/
179179
void pushAddRemoveCommand( QgsComposerItem* item, const QString& text, QgsAddRemoveItemCommand::State state );
180180

181+
//printing
182+
183+
void exportAsPDF( const QString& file );
184+
185+
void print( QPrinter &printer );
186+
187+
//! print composer page to image
188+
//! If the image does not fit into memory, a null image is returned
189+
QImage printPageAsRaster( int page );
190+
181191
/**Render a page to a paint device
182192
@note added in version 1.9*/
183193
void renderPage( QPainter* p, int page );

0 commit comments

Comments
 (0)