Using libreoffice libraries from python without UNO.

Jonny jelias at ulsholmen.se
Fri May 9 13:27:57 PDT 2014


 

Hi, 

I am using some tools to generate odf-documents. In order to
convert them to pdf I'm using writer, but I need to run the function
tools->update->all for updating TOC. 

I thought that I would write a
python script for doing this but I would like to call the libraries
directly and not via UNO. My script would look something like: 

import
libreoffice

document =
libreoffice.Writer('path/to/my/document.odt')
document.update('all')
document.save()
document.close()

What
I need is some guidance to in which libraries the functionallity for
open, update and save are located. I have been digging around in the
code without success. If someone has an idea it would save me a lot of
time. 

Thanks, 

/Jonny 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20140509/3b7183dc/attachment.html>


More information about the LibreOffice mailing list