https://bugs.documentfoundation.org/show_bug.cgi?id=100492
--- Comment #5 from Laurent Godard <[email protected]> ---
Hi
(copy/paste to draw + right clik on the graphic should allow you to export)
currently, this is done using uno api (pyUNO)
obj is a graphic (in writer), doc is the writer document
eg.
obj = doc.getDrawPage().getByIndex(0)
export_engine = smgr.createInstanceWithContext(
'com.sun.star.drawing.GraphicExportFilter', ctx)
extension = '.svg'
mimetype = 'image/svg+xml'
export_engine.setSourceDocument(obj)
url = unohelper.systemPathToFileUrl(
os.path.join(out_dir_path, obj_file_name))
args = (PropertyValue('URL', 0, url, 0),
PropertyValue('MediaType', 0, mimetype, 0))
export_engine.filter(args)
feel free to ask if anything not clear
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs