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 REST with Spring (video course) this week in the Spring 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: 2409
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.
I agree. Here's the link:
subject: Converting DOC to PDF
It's not a secret anymore!