Solved

Java TXT, RTF, DOC, DOCX to PDF converter

Posted on 2015-02-23
3
545 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 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

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

717 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