Solved

Java TXT, RTF, DOC, DOCX to PDF converter

Posted on 2015-02-23
3
341 Views
Last Modified: 2016-05-30
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.
0
Comment
Question by:gzemlyakov
3 Comments
 
LVL 13

Accepted Solution

by:
George K. earned 500 total points
Comment Utility
Hi,

Here are some sources:
http://itextpdf.com/functionality ->text to PDF | open source
https://www.qoppa.com/wordconvert/-> jWordConvert – Java PDF Library MS Word to PDF Conversion | Paid Software
http://pdfbox.apache.org/ ->creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents. Apache PDFBox also includes several command line utilities.  |Open Source
0
 
LVL 13

Expert Comment

by:frankhelk
Comment Utility
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
The viewer will learn how to implement Singleton Design Pattern in Java.
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now