My QGIS layout manager has several A4 layouts. I would like to export them all to "the same pdf".
I think that by going through the python console it should be possible. for now I can only print one page.... Here is my code:
manager = QgsProject.instance().layoutManager() exporter = QgsLayoutExporter(layout) for layout in manager.printLayouts(): print(layout.name()) exporter.exportToPdf("F:/44.pdf",QgsLayoutExporter.PdfExportSettings())
Here is the return: 0, 1, 0, 2
Only page 2 is exported to PDF