Re: [api-dev] ODT to PDF export incorrect, unless Thread.sleep() used

2006-08-27 Thread Mathias Bauer
Tim Anderson wrote: Thanks for the tip. I've inserted the following between the load and save - it appears to work: XTextFieldsSupplier supplier = (XTextFieldsSupplier) UnoRuntime.queryInterface(XTextFieldsSupplier.class, document); XEnumerationAccess fields =

Re: [api-dev] ODT to PDF export incorrect, unless Thread.sleep() used

2006-08-17 Thread Kent Gibson
I have had similiar problems with pdfs, but with chained frames coming out wrong. By using the refresh, and/or the xTextDocument.reformat, at strategic locations (for exampel after an insertcontent) I often have better results. --- Tim Anderson [EMAIL PROTECTED] wrote: (Originally posted at

Re: [api-dev] ODT to PDF export incorrect, unless Thread.sleep() used

2006-08-17 Thread Kent Gibson
also, I believe that user fields themselves support the XRefreshable interface, so you might just try refreshing the user fields, instead of the whole document. --- Tim Anderson [EMAIL PROTECTED] wrote: (Originally posted at http://www.oooforum.org/forum/viewtopic.phtml?t=41056) I'm using

[api-dev] ODT to PDF export incorrect, unless Thread.sleep() used

2006-08-16 Thread Tim Anderson
(Originally posted at http://www.oooforum.org/forum/viewtopic.phtml?t=41056) I'm using OpenOffice 2.0.3 to convert ODT byte streams to PDF from a servlet. However, the PDF generation doesn't work correctly unless I introduce a sleep() between the call to loadComponentFromURL() and storeToURL().