We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 8e84137 commit ecdf400Copy full SHA for ecdf400
src/mapserver/qgswmsserver.cpp
@@ -414,10 +414,11 @@ QByteArray* QgsWMSServer::getPrint( const QString& formatString )
414
}
415
416
QPrinter printer;
417
+ printer.setResolution( c->printResolution() );
418
+ printer.setFullPage( true );
419
printer.setOutputFormat( QPrinter::PdfFormat );
420
printer.setOutputFileName( tempFile.fileName() );
421
printer.setPaperSize( QSizeF( c->paperWidth(), c->paperHeight() ), QPrinter::Millimeter );
- printer.setResolution( c->printResolution() );
422
423
QRectF paperRectMM = printer.pageRect( QPrinter::Millimeter );
424
QRectF paperRectPixel = printer.pageRect( QPrinter::DevicePixel );
0 commit comments