Skip to content
Permalink
Browse files

Use full page for pdf in getPrint request

git-svn-id: http://svn.osgeo.org/qgis/trunk@15088 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jan 27, 2011
1 parent 8e84137 commit ecdf400d1cdd8c8862b62d4450b8fc6c41c2abf4
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/mapserver/qgswmsserver.cpp
@@ -414,10 +414,11 @@ QByteArray* QgsWMSServer::getPrint( const QString& formatString )
}

QPrinter printer;
printer.setResolution( c->printResolution() );
printer.setFullPage( true );
printer.setOutputFormat( QPrinter::PdfFormat );
printer.setOutputFileName( tempFile.fileName() );
printer.setPaperSize( QSizeF( c->paperWidth(), c->paperHeight() ), QPrinter::Millimeter );
printer.setResolution( c->printResolution() );

QRectF paperRectMM = printer.pageRect( QPrinter::Millimeter );
QRectF paperRectPixel = printer.pageRect( QPrinter::DevicePixel );

0 comments on commit ecdf400

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