Mike Scott wrote:

> Per Jessen wrote:
> ....
>> I have just tried it, and it does work fine with -headless - the one
>> odd thing is that it takes about twice as long ??
>> With '-invisible -display :1.0', a conversion takes 10-11 seconds,
>> with '-headless' it takes 20 seconds.  (oldish 550MHz machine).
> 
> Intriguing - I've noticed it's slow here (a 1.2GHz C7, so not exactly
> the fastest on the block :-)  )
> 

I guess I'll have to run some tests - with 20seconds per conversion, I
would definitely need some concurrency.

>> Whilst I've got your attention - how do you cope with soffice
>> detaching itself at startup?  I've got a kludgy work-around where I
>> run soffice, then a while-loop waiting for the pdf file to appear. 
>> Is there a way of preventing the detach?
> 
> Ah, I was going to say not an issue - but I have some vague
> recollection of something asynchronous going on. 

I see soffice immediately detach itself and continue running in the
background.  This is with OO 2.4.0.  I'm running the pdf conversions
from within a Makefile, and I can't let the make continue until I know
that the PDF has been successfully created ...

> OTOH I can't remember 
> what.... the macro I'm using is just:
> 

This is my macro:

http://jessen.ch/files/export2pdf

[snip]
>     oDoc.close( True )
> End Sub
> 
> and the php wrapper code stuff certainly doesn't do any
> wait-for-completion loops.
> 
> Oh, hang on - isn't that last 'True' arg to the close() to say
> "synchronous please"?
> 
> Could that be the problem?

I just do a doc.dispose() - I'll try the close(True) instead, but I
can't see how it would prevent the detach which seems to happen
_before_ everything else. 


/Per


-- 
/Per Jessen, Zürich


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to