I want to export a transparency png image in draw. How do I export png file using FilterData to set “Save Transparency”(like the UI below)
self.exporter = self.createUnoService("com.sun.star.drawing.GraphicExportFilter")
output_props = {
"URL": output_path,
"MimeType": "image/png"
}
output_props = self._to_PropertyValues(output_props)
self.exporter.setSourceDocument(controller.Selection)
self.exporter.filter(output_props)