Bookmark Topic Watch Topic
  • New Topic

I want to print a document without opening it.  RSS feed

 
Rohit Ahuja
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi guys,
I have a JSP page which has a hyperlink to a pdf file. I want to print this PDF file without opening it... Can someone help me out with this, and it is real fast and urgent...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Instead of linking directly to the PDF, link to a servlet which will write the PDF to its response after setting appropriate content-type headers. This has actually been discussed a number of times in these forums.
Search through this and the Servlets forums for 'PDF' and you should find lots of info.
bear
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
OK, I just discovered that this was cross-posted in the HTML forum.
Please do not cross-post the same question in mutliple forums. It creates redundant conversations that just wastes peoples' time.
Please continue any discussion here.
bear
[ October 06, 2003: Message edited by: Bear Bibeault ]
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!