From 58239955a06345dda4a4926715814b3a6af7075e Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 1 Mar 2022 12:46:35 +0100 Subject: [PATCH] Gui: [skip ci] export PDF of 3D view in landscape orientation --- src/Gui/View3DInventor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Gui/View3DInventor.cpp b/src/Gui/View3DInventor.cpp index 1acb2b488b..49a73c3481 100644 --- a/src/Gui/View3DInventor.cpp +++ b/src/Gui/View3DInventor.cpp @@ -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); }