Skip to content


Python bindings for printing
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jul 18, 2012
1 parent 717a1c3 commit 171ae62
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/core/qgscomposition.sip
Expand Up @@ -178,6 +178,16 @@ class QgsComposition: QGraphicsScene
/**Convenience function to create a QgsAddRemoveItemCommand, connect its signals and push it to the undo stack*/
void pushAddRemoveCommand( QgsComposerItem* item, const QString& text, QgsAddRemoveItemCommand::State state );


void exportAsPDF( const QString& file );

void print( QPrinter &printer );

//! print composer page to image
//! If the image does not fit into memory, a null image is returned
QImage printPageAsRaster( int page );

/**Render a page to a paint device
@note added in version 1.9*/
void renderPage( QPainter* p, int page );
Expand Down

0 comments on commit 171ae62

Please sign in to comment.