Skip to content

Commit

Permalink
[TD]Correct font size on PDF export
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed Jul 29, 2020
1 parent 60d73e0 commit f2a9f71
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Mod/TechDraw/Gui/MDIViewPage.cpp
Expand Up @@ -662,18 +662,14 @@ void MDIViewPage::printPdf(std::string file)
QString filename = QString::fromUtf8(file.data(),file.size());
QPrinter printer(QPrinter::HighResolution);
printer.setFullPage(true);
printer.setOutputFormat(QPrinter::PdfFormat);
printer.setOutputFileName(filename);
// printer.setOrientation(m_orientation);
if (m_paperSize == QPrinter::Ledger) {
printer.setOrientation((QPrinter::Orientation) (1 - m_orientation)); //reverse 0/1
} else {
printer.setOrientation(m_orientation);
}
printer.setPaperSize(m_paperSize);
m_view->setExporting(true);
print(&printer);
m_view->setExporting(false);
}

void MDIViewPage::print()
Expand Down

0 comments on commit f2a9f71

Please sign in to comment.