Solved

Printing a pdf from a link

Posted on 2006-07-13
5
224 Views
Last Modified: 2013-12-24
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
Comment
Question by:lostboyinsofla
  • 2
  • 2
5 Comments
 
LVL 12

Assisted Solution

by:mmc98dl1
mmc98dl1 earned 250 total points
ID: 17104138
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
 
LVL 18

Expert Comment

by:Plucka
ID: 17104411
lostboyinsofla,

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

Regards
Plucka
0
 

Author Comment

by:lostboyinsofla
ID: 17104542
THis is to users on the internet.  I don't have any control over their OS or browser.
0
 
LVL 18

Accepted Solution

by:
Plucka earned 250 total points
ID: 17104599
Then it's not possible
0
 

Author Comment

by:lostboyinsofla
ID: 17104686
:(
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question