Page 1 of 1

Converting .docx files to pdf programatically

PostPosted: Wed Aug 14, 2013 6:53 pm
by srimovila
I would like to use OpenOffice api to convert .docx files to pdf format using Java. I don't want to force the users of my application to install OpenOffice. So, I am looking at embedding OpenOffice components in my application itself. Looking for guidance on how to achieve this.

Thanks in advance for your help.

Best Regards,
Sai

Re: Converting .docx files to pdf programatically

PostPosted: Sat Sep 14, 2013 2:22 pm
by Zizi64
So, I am looking at embedding OpenOffice components in my application itself.


Do you mean: you want use the "PDF export" function of the Apache OpenOffice/LibreOffice?
You can use a lot of freeware "virtual PDF printers" or other PDF converter softwares for this task.
But you can not use the built in Open/LibreOffice functions without install one of the open source office suites.

(Otherwise you can download the source codes of the Apache Openoffice, or LibreOffice, and you can get code snippets from them - if you are familiar, and expert to programming...)

Re: Converting .docx files to pdf programatically

PostPosted: Sat Sep 14, 2013 5:35 pm
by Villeroy
Open/LibreOffice is not good at reading OOXML files.
Better download the free readers for Word/Excel/PowerPoint from MS and print your documents to a virtual PDF printer.