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
Converting .docx files to pdf programatically
Re: Converting .docx files to pdf programatically
Do you mean: you want use the "PDF export" function of the Apache OpenOffice/LibreOffice?So, I am looking at embedding OpenOffice components in my application itself.
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...)
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Re: Converting .docx files to pdf programatically
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.
Better download the free readers for Word/Excel/PowerPoint from MS and print your documents to a virtual PDF printer.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice