Hello Ariel,

Thanks for your solution it works fine.

Now I'm trying to set pdf export parameters, but I don't know how to
access the configuration service using pyuno, may be someone could give
me the path....

cheers
S.B.

Le jeudi 15 octobre 2009 à 11:02 -0300, Ariel Constenla-Haile a écrit :
> Hello Stéphane,
> 
> On Thursday 15 October 2009, 10:26, Stéphane Bonhomme wrote:
> > Hi,
> > 
> > This is my first post here, I'm not experimented with uno but trying to
> > use it for generating pdf from odt documents on a server.
> > 
> > It works quite well, my server is running debian and a python server
> > application, so i use pyUno, with openoffice.org 3.1.1 running in
> > headless mode. I managed to open a document and save it to pdf, It was
> > quite easy.
> > 
> > The problem I have now appears when updating the table of contents, the
> > page numbers are not correctly set : they are all changed to the first
> > table of contents page number (2) (so the index is updated, in the odt
> > they were set to 1).
> > 
> > There might be several reasons to that :
> > - as oo.o runs headless, does it automatically updates the page
> > numbers ?
> > - I call the update() method on the index just after having called
> > loadComponentFromURL, do I need to attach my update to an kind of event
> > (I was wondering if the document were finished to be loaded when I do my
> > update)
> 
> AFAIK updating the TOC does not force a re-pagination.
> The easiest is to dispatch a ".uno:Repaginate" before, or even an 
> ".uno:UpdateAll".
> 
> Nevertheless, I've no idea if this works headless.
> Try it and tell.
> 
> Regards


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to