To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=59667 Issue #:|59667 Summary:|Export document as pdf from java program Component:|framework Version:|OOo 2.0 Platform:|All URL:| OS/Version:|All Status:|UNCONFIRMED Status whiteboard:| Keywords:| Resolution:| Issue type:|ENHANCEMENT Priority:|P3 Subcomponent:|code Assigned to:|tm Reported by:|nilsolov
------- Additional comments from [EMAIL PROTECTED] Thu Dec 22 01:10:03 -0800 2005 ------- I have a java applicatioin that produces a OOo text document for reporting the result of the programs activities. The document must be saved as both a OOo document and a pdf document. Saving it as an OOo document is not a problem, there are examples in the SDK documentation. Saving it as a pdf document however is a quite different thing. When I record a macro I find that the BASIC macro use: ... dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") ... dim args1(1) as new com.sun.star.beans.PropertyValue args1(0).Name = "URL" args1(0).Value = pdfname args1(1).Name = "FilterName" args1(1).Value = "writer_pdf_Export" dispatcher.executeDispatch(document, ".uno:ExportDirectToPDF", "", 0, args1()) I have tried several ways to use Dispatch, DispatchHelper with no luck. My main problem is that I can't find out how to create the different objects and services needed to do the job. I would like to have some references in the API documentation that tells me how to create a service and what kind of objects to use as originator. Because the macro recorder is a great way to learn how to do things it would be a nice thing if there was some kind of information on how to transform the BASIC code to for example java. What do I need to do in java that the BASIC inerpreter have alreade done. I also would like to have an example that shows how to solve my specific problem. Regards Nils-Olov Fransson --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]