In writer you can use .uno:ExportToPDF and .uno:ExportToEPUB it would be nice to have for draw .uno:ExportToSVG .uno:ExportToPNG .uno:ExportToJPG I know everything is available via the export command but it's the same in writer and export an image to png is very common.
The actual request is ahout a quick way to export in the given format, in particular needed for the Notebookbar ("nice to have" is not a use case). But OTOH it blows up the UNO commands. Maybe we can enhance the function and remember the filename so when the document has been exported once it just overrides the file. (There should be a ticket about this but I didn't find.) Opinions?
It's for the menubar in draw and for Notebookbar and the idea is to be consistent with other apps where you have "quick" export access and export to png should be defenitiv available.
No further opinions, let's do it (also since .uno:SaveGraphic is for some reasons not working in macros). The functions could be introduced similar to .uno:ExportDirectToPDF and just show the file dialog.