Gui: [skip ci] export PDF of 3D view in landscape orientation

This commit is contained in:
wmayer
2022-03-01 12:46:35 +01:00
parent 6ae3feedae
commit 58239955a0

View File

@@ -507,6 +507,7 @@ void View3DInventor::printPdf()
Gui::WaitCursor wc;
QPrinter printer(QPrinter::ScreenResolution);
printer.setOutputFormat(QPrinter::PdfFormat);
printer.setPageOrientation(QPageLayout::Landscape);
printer.setOutputFileName(filename);
print(&printer);
}