• Post Reply Bookmark Topic Watch Topic
  • New Topic

To Generate a PDF file from any word file or another file.  RSS feed

 
premchand Singh
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can any body help me with the code how to generate a PDF file of a document and to print it on the local machine.
Thanks in advance..
 
Paul Clapham
Sheriff
Posts: 22835
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure. Let's start with what you have so far, and you can explain the problems you're having with that code.
 
premchand Singh
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want the full code that can print a word document once it is executed from the local machine.
 
Paul Clapham
Sheriff
Posts: 22835
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see. Then you should read this page from our FAQ section: NotACodeMill (click on the link).
 
Jim Pouwels
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
premchand Singh wrote:i want the full code that can print a word document once it is executed from the local machine.


LOL! I think this quote should be used as an example in the NotACodeMill section! I believe you can't get lazier than this!
 
Tim Moores
Saloon Keeper
Posts: 4034
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Convert a word document to PDF: check out the JODConverter library

Print a document: java.awt.Desktop.print may help
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!