While saving an atlas as PDF in QGIS, I can manually change the settings shown the image using "PDF Export Settings" window.
How can I set those options using PyQGIS?
Minimal code:
layout_manager = QgsProject.instance().layoutManager()
layout = layout_manager.layoutByName('LAYOUT_NAME')
layout_exporter = QgsLayoutExporter(layout)
layout_exporter.exportToPdf(path, QgsLayoutExporter.PdfExportSettings())