Skip to content
Permalink
Browse files

Python bindings for printing

  • Loading branch information
mhugent committed Jul 18, 2012
1 parent 717a1c3 commit 171ae62c8586cb317b05c3cd219744b5b429528c
Showing with 10 additions and 0 deletions.
  1. +10 −0 python/core/qgscomposition.sip
@@ -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 );

//printing

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 );

0 comments on commit 171ae62

Please sign in to comment.
You can’t perform that action at this time.