Click here to Skip to main content
15,893,401 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a pdf file in a folder on the server. I want the user to be able to print the pdf file not download it. I have a hyperlink in place. I want the user to click on the hyperlink and the pdf prints. How can I get this to work?
Posted
Updated 4-Feb-14 4:34am
v2
Comments
JasonMacD 4-Feb-14 12:26pm    
Just launch the file, Adobe Reader has built in print functionality that users can use to then print the file.
Computer Wiz99 4-Feb-14 12:49pm    
Yeah, but I thought it might be easier for them to just click on the link and it prints.
JasonMacD 4-Feb-14 13:01pm    
Try this msdn article: http://support.microsoft.com/kb/305703
Computer Wiz99 4-Feb-14 14:30pm    
Ok, Thanks. I will check it out.

1 solution

I can think of a couple of options:

- You export/convert the PDF to a couple of image files, then you place them into a hidden iframe and use window.print() to print the iframe content

- Or you display the PDF into an iframe which points to Google Doc Viewer which will render your PDF as image files for free. PDF viewer without using Acrobat[^]
Note that your PDF needs to have public access as you need to pass it to Google for doing its job

- The last option is not free and not sure if it's worth in your case http://goo.gl/OLPha[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900