Export Draw document to SVG programmatically

Greetings everyone,

Has anyone attempted before to export a simple Draw document (lines, circle and simple text) to an SVG file programmatically? I’m searching through the API reference plus I’m looking through posts over here, as well as the OpenOffice forum and cannot get anywhere.

soffice --convert-to svg  /path/to/some/document.odg
1 Like

If you need more control for each page in document, used method storeToURL

https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1frame_1_1XStorable.html#af48930bc64a00251aa50915bf087f274