Save as tiled pdf should produce only A4 page size output.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-08-23 15:43:52 +03:00
parent ea2c601850
commit 209d2c46b6

View File

@ -821,6 +821,7 @@ void MainWindowsNoGUI::SaveLayoutAs()
}
QPrinter printer;
SetPrinterSettings(&printer, PrintType::PrintPDF);
printer.setPageSize(QPrinter::A4);// Want to be sure that page size is correct.
// Call IsPagesFit after setting a printer settings and check if pages is not bigger than printer's paper size
if (not isTiled && not IsPagesFit(printer.paperRect().size()))