[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 236
  • Last Modified:

Printing a pdf from a link

Is there anyway for me to print a pdf file from a link in a coldfusion template?  Ideally I would like the pdf to just print with a print dialog box opening up.  If I can't do that then my second choice would be to just have the print dialog box display and not have a pop-up window.

Any thoughts?
0
lostboyinsofla
Asked:
lostboyinsofla
  • 2
  • 2
2 Solutions
 
mmc98dl1Commented:
I dont believe so. In an html page you would be able to use some js like

<script>window.print()</script>

Because pdf is a plugin to the browser or its launched xternally to the browser you dont have any control over it.

I also doubt that pdf writers have the option to force print on open, after all that defeats the purpose of the pdf right?
0
 
PluckaCommented:
lostboyinsofla,

Is this in a controlled environment or to users out in Internet land.

Regards
Plucka
0
 
lostboyinsoflaAuthor Commented:
THis is to users on the internet.  I don't have any control over their OS or browser.
0
 
PluckaCommented:
Then it's not possible
0
 
lostboyinsoflaAuthor Commented:
:(
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now