This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Client side - silent print of PDF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Client side - silent print of PDF" Watch "Client side - silent print of PDF" New topic
Author

Client side - silent print of PDF

mikael vivier
Greenhorn

Joined: Oct 11, 2011
Posts: 2
Hey everyone, I need some help here !

So I want to print with no user interaction some PDF on the client browser.
For this, I use a servlet and an iframe in my JSP, this way the PDF file is not open :

The servlet :

The JSP code :

It's working pretty fine except it is not completely a silent print since there is a confirmation message from Adobe reader : http://www.freeimagehosting.net/acea3

So my question is what can I do for prevent this message to show up and print the PDF automatically ?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2409
That's not possible, and that's a good thing: imagine the security implications if any random web app could start printing documents on the client side without an user interaction!
mikael vivier
Greenhorn

Joined: Oct 11, 2011
Posts: 2
Yeah I understand but I imagine there were some trick in Adobe Reader to accept this print request at each times, without users interactions (I can configure all the users PC) ?
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Client side - silent print of PDF
 
jQuery in Action, 3rd edition