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?
lostboyinsoflaAsked:
Who is Participating?
 
PluckaConnect With a Mentor Commented:
Then it's not possible
0
 
mmc98dl1Connect With a Mentor Commented:
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
 
lostboyinsoflaAuthor Commented:
:(
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.