Skip to content

Commit ecdf400

Browse files
author
mhugent
committedJan 27, 2011
Use full page for pdf in getPrint request
git-svn-id: http://svn.osgeo.org/qgis/trunk@15088 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 8e84137 commit ecdf400

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/mapserver/qgswmsserver.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,11 @@ QByteArray* QgsWMSServer::getPrint( const QString& formatString )
414414
}
415415

416416
QPrinter printer;
417+
printer.setResolution( c->printResolution() );
418+
printer.setFullPage( true );
417419
printer.setOutputFormat( QPrinter::PdfFormat );
418420
printer.setOutputFileName( tempFile.fileName() );
419421
printer.setPaperSize( QSizeF( c->paperWidth(), c->paperHeight() ), QPrinter::Millimeter );
420-
printer.setResolution( c->printResolution() );
421422

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

0 commit comments

Comments
 (0)
Please sign in to comment.