<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Helvetica,Arial,sans-serif'>
<p>Hi,</p>
<p>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.</p>
<p>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:</p>
<p>import libreoffice<br /><br />document = libreoffice.Writer('path/to/my/document.odt')<br />document.update('all')<br />document.save()<br />document.close()<br /><br /></p>
<p>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.</p>
<p>Thanks,</p>
<p>/Jonny</p>
<p> </p>
<div> </div>
</body></html>