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 Murach's Java Servlets and JSP this week in the Servlets 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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Converting DOC to PDF
Similar Threads
PDF Conversion
Embeded doc in word/java api to create word file
Expiring a pdf document in the browser
How to convert doc files to pdf in Struts2
pdc viewer software needed