I am trying to export a specific layout
with python
in QGIS3
. But I am struggling with the QgsLayoutExport
class. How do you use it? How can specify which layout
should be exported? This is the code I tried but it's not working. The layout
in the brackets is the layout
I want to export.
QgsLayoutExporter(layout).exportToPdf(filepath)