mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix for bug #1980, pdf paper size
git-svn-id: http://svn.osgeo.org/qgis/trunk@11766 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
9e049407cb
commit
48402812c7
@ -481,6 +481,7 @@ void QgsComposer::on_mActionExportAsPDF_triggered()
|
||||
|
||||
printer.setOutputFormat( QPrinter::PdfFormat );
|
||||
printer.setOutputFileName( myOutputFileNameQString );
|
||||
printer.setPaperSize( QSizeF( mComposition->paperWidth(), mComposition->paperHeight() ), QPrinter::Millimeter );
|
||||
|
||||
print( printer );
|
||||
}
|
||||
@ -506,16 +507,6 @@ void QgsComposer::print( QPrinter &printer )
|
||||
showWMSPrintingWarning();
|
||||
}
|
||||
|
||||
//try to set most of the print dialog settings based on composer properties
|
||||
if ( mComposition->paperHeight() > mComposition->paperWidth() )
|
||||
{
|
||||
printer.setOrientation( QPrinter::Portrait );
|
||||
}
|
||||
else
|
||||
{
|
||||
printer.setOrientation( QPrinter::Landscape );
|
||||
}
|
||||
|
||||
//set resolution based on composer setting
|
||||
printer.setFullPage( true );
|
||||
printer.setColorMode( QPrinter::Color );
|
||||
|
Loading…
x
Reference in New Issue
Block a user