Solved

Java TXT, RTF, DOC, DOCX to PDF converter

Posted on 2015-02-23
3
371 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
ID: 40626746
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 14

Expert Comment

by:frankhelk
ID: 41624455
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A few years ago I was very much a beginner at VBA, and that very much remains the case today.  I'll do my best to explain things as I go in the hope that other beginners can follow.  If you just want to check out a tool that creates a Select Case fu…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

920 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