Link to home
Start Free TrialLog in
Avatar of gzemlyakov
gzemlyakov

asked on

Java TXT, RTF, DOC, DOCX to PDF converter

Hello experts,
I am developing client-server application using Java. One of functions in my app is the conversion from popular text formats like .txt, .rtf, .doc, .docx to pdf. I found JODConverter which based on Open/Libre office core as the most appropriate solution for my goal but faced with some internationalization ploblems: I get pdf file with some mistakes after conversation arabic text file. Here is the sample of my code:
OfficeManager officeManager = new DefaultOfficeManagerConfiguration().setMaxTasksPerProcess(Integer.parseInt(config.getProperty("openoffice.tasks"))).setOfficeHome(config.getProperty("openoffice.path")).setProcessManager(new PureJavaProcessManager()).setPortNumber(Integer.parseInt(config.getProperty("openoffice.port"))).buildOfficeManager();
officeManager.start();
officeManager.convert(src, dest);

Open in new window

Has anyone faced with the internationalization issues in JODConverter? Is there any other free tools (Java or command-line) which can convert .txt, .rtf, .doc, .docx to pdf with high quality?
Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of no worries :-) no nothing
no worries :-) no nothing
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Frank Helk
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.