Skip to content
Permalink
Browse files

Use full page for pdf in getPrint request

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15088 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jan 27, 2011
1 parent d22fe45 commit 3f8e6a9414b1e481eaa4da34b6f7ea1f4c11b6ae
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 3f8e6a9

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