Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing Convertor for word to pdf  RSS feed

 
Carl John
Ranch Hand
Posts: 47
Eclipse IDE Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm developing an Swing application which tends to convert any given word document to pdf file. Please guide me to do this.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Apache POI library can read DOC files, and the iText library can create PDF files.

If having OpenOffice installed is an option, then the JODConverter library would make life much easier.
 
Rob Spoor
Sheriff
Posts: 21048
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The conversion engine is not Swing related so I'm moving this thread to Java in General. But I think most people will recommend using OpenOffice.org (or whatever it's called now) in API mode.

Edit: see, Lester already did so
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!