[TD]Correct font size on PDF export

This commit is contained in:
wandererfan
2020-07-29 09:14:42 -04:00
committed by WandererFan
parent ab75a60141
commit 6773b6862c

View File

@@ -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()