Hi Cameron,

I want to be able to automate on a server the exporting of OpenDocuments to PDF. Can someone point me to resources that would help me in doing so?

you could use the UNO API ... for example to store a given "xTextDoc" to pdf, the following java-snippet should be useful

PropertyValue[] PDFArgs = new com.sun.star.beans.PropertyValue[1];
PropertyValue PDFArgs[0] = new com.sun.star.beans.PropertyValue;
PDFArgs[0].Name = "FilterName";
PDFArgs[0].Value = "writer_pdf_Export";

XStrorable store = (XStorable)
    UnRuntime.queryInterface(XStorable.class, xTextDoc);
store.storeToURL("/path/to/your/destination/nicename.pdf",PDFArgs);

Hope that helps

Regards

Stephan

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

Reply via email to