Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invoke direct printing of PDF file from web application at client side

 
Balaguru Ramaswamy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I need to print PDF file directly(Without Preview) which is generated in my Java web application. But i am not sure how to do this to perform print from my web browser. So can anybody help me on how to do this.

Help regarding this will be highly appreciated.

Thanks in advance

Bala
 
Tim Moores
Bartender
Posts: 2954
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Print preview is an optional, user-initiated step. But there's no getting around the print dialog wherein the user needs to click OK.
 
Balaguru Ramaswamy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim for your reply.

Yes, At least if i can get printer dialog box for user to click ok also fine. But. I didn't find a way of doing this.
 
Tim Moores
Bartender
Posts: 2954
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you can find a way to display the PDF, then you should also be able to call the JavaScript window.print() function from within the PDF.

There's no way to force a user to display a file, though - her browser might be set to store it to disk automatically.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic