File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes I want to print a document without opening it. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

I want to print a document without opening it.

Deepak A
Ranch Hand

Joined: Oct 04, 2001
Posts: 120
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...


Face Off.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60055
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60055
    
  65

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I want to print a document without opening it.
 
Similar Threads
Printing file without opening it
Printing PDF files
Printing a PDF without opening it
Printing PDF - Technical Solution Needed
iText Silent Print