Save as tiled pdf should produce only A4 page size output.
--HG-- branch : develop
This commit is contained in:
parent
ea2c601850
commit
209d2c46b6
|
@ -821,6 +821,7 @@ void MainWindowsNoGUI::SaveLayoutAs()
|
||||||
}
|
}
|
||||||
QPrinter printer;
|
QPrinter printer;
|
||||||
SetPrinterSettings(&printer, PrintType::PrintPDF);
|
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
|
// 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()))
|
if (not isTiled && not IsPagesFit(printer.paperRect().size()))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user