File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes Converting DOC to PDF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Converting DOC to PDF" Watch "Converting DOC to PDF" New topic

Converting DOC to PDF

Bindu Padmanabhan

Joined: Jun 13, 2008
Posts: 10

I am trying to convert .doc file to a pdf using iText. PDF got generated, but the generated pdf contains a lot of junk charaters and formatting has lost.
Please help.

Tim Moores

Joined: Sep 21, 2011
Posts: 2408
iText has no idea about structured text formats, it only recognizes plain text, so this won't work. Check out the JODConverter library, which uses OpenOffice in server mode to perform such conversions.
Don't get me started about those stupid light bulbs.
subject: Converting DOC to PDF
Similar Threads
How to convert doc files to pdf in Struts2
PDF Conversion
Embeded doc in word/java api to create word file
Expiring a pdf document in the browser
pdc viewer software needed