diff --git a/src/core/layout/qgslayoutexporter.cpp b/src/core/layout/qgslayoutexporter.cpp index 8bd7bde66ba..89f8ebae9d8 100644 --- a/src/core/layout/qgslayoutexporter.cpp +++ b/src/core/layout/qgslayoutexporter.cpp @@ -1026,13 +1026,6 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToSvg( QgsAbstractLayou void QgsLayoutExporter::preparePrintAsPdf( QgsLayout *layout, QPrinter &printer, const QString &filePath ) { printer.setOutputFileName( filePath ); - // setOutputFormat MUST come after setOutputFileName, which auto-sets format to QPrinter::PdfFormat. - - // [LS] This should be QPrinter::NativeFormat for Mac, otherwise fonts are not embed-able - // and text is not searchable; however, there are several bugs with <= Qt 4.8.5, 5.1.1, 5.2.0: - // https://bugreports.qt.io/browse/QTBUG-10094 - PDF font embedding fails - // https://bugreports.qt.io/browse/QTBUG-33583 - PDF output converts text to outline - // Also an issue with PDF paper size using QPrinter::NativeFormat on Mac (always outputs portrait letter-size) printer.setOutputFormat( QPrinter::PdfFormat ); updatePrinterPageSize( layout, printer, firstPageToBeExported( layout ) );