• Post Reply Bookmark Topic Watch Topic
  • New Topic

Word to PDF Converter  RSS feed

 
renu richard
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using the below code to convert the word document content to the PDF file...

But i am not able to move the contents like table from word to PDF. Any idea how this can be done.

Any API's which is available for this ? Please throw some light on this..



 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37507
551
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Renu,
Do you have to write code to convert the file? If you search for "print in pdf", there are a lot of products. Maybe one has a command line or API?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to use the POI API to get at the tables, pictures, styles etc., and then call appropriate iText classes/methods while creating the PDF. It's quite a complex project.

I'd advise to use the JODConverter library for this (which uses OpenOffice in server mode, so you need OO installed).
 
Samuel Behrman
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my opinion, you can download a converter here:
http://www.word-to-pdf.com/
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Samuel Behrman wrote:http://www.word-to-pdf.com/

I don't see any suggestion that it has a Java API - does it?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!