?
Solved

Java TXT, RTF, DOC, DOCX to PDF converter

Posted on 2015-02-23
3
Medium Priority
?
675 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Accepted Solution

by:
George K. earned 2000 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month9 days, 18 hours left to enroll

762 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