comparison src/converter.cpp @ 35:ca66763b6524 0.8

Add commented out layout test
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 11 Apr 2016 14:59:18 +0200
parents ad54c98cb8d8
children 5354cbda7188 41cd27a64365
comparison
equal deleted inserted replaced
34:f4aaf1cd8cb0 35:ca66763b6524
343 QPrinter printer(QPrinter::PrinterResolution); 343 QPrinter printer(QPrinter::PrinterResolution);
344 printer.setOutputFormat(QPrinter::PdfFormat); 344 printer.setOutputFormat(QPrinter::PdfFormat);
345 printer.setPaperSize(QPrinter::A4); 345 printer.setPaperSize(QPrinter::A4);
346 printer.setOutputFileName(output.fileName()); 346 printer.setOutputFileName(output.fileName());
347 doc.setHtml(htmlString); 347 doc.setHtml(htmlString);
348 /*
349 QPageLayout layout = printer.pageLayout();
350 layout.setUnits(QPageLayout::Millimeter);
351 layout.setMargins(QMarginsF(20, 20, 20, 20));
352 printer.setPageLayout(layout);
353 doc.setPageSize(printer.pageRect().size());
354 */
348 doc.print(&printer); 355 doc.print(&printer);
349 } 356 }
350 } 357 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)