• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Client side - silent print of PDF

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Saloon Keeper
Posts: 7590
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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) ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic