URGENT! Printing PDF's from Coldfusion

Posted on 2004-08-05
Last Modified: 2013-12-24
What is the easiest way to print a PDF document to a printer connected to the server. Using either COM or a Tool or other?

I need this urgently
Question by:Plucka
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 17

Expert Comment

ID: 11732905
LVL 18

Author Comment

ID: 11733030
I believe these create PDF's not print PDF's, I create the PDF's I just want to send them to a printer defined on the server.
LVL 21

Expert Comment

ID: 11733240
last year I had unsucessful attempt of using javascript and PDF. Though my another programmer friend claimed that they have used it sucessfully. This is not your answer but may be this will give you some thoughts.
LVL 11

Expert Comment

ID: 11733910
ok if you have created your pdf...
then the person who is viewing it will view it using acrobat reader and in that it self you have print option...

but if u have given a button on ur site saying print pdf...
then you will have to pop up a window with the conetents that are there in the pdf and then just use javascript  command...


i am sure u already know abt this..


Accepted Solution

Seth_Bienek earned 500 total points
ID: 11734918

If you are wanting to print from the server, then first you'll need to install Acrobat Reader on the server.

Next drop Rob can der Woude's PrintPDF.bat batch file onto your server, preferrably somewhere outside your web root: (save as printpdf.bat)

Lastly, just call printpdf.bat from your CF template using <cfexecute>!

That should do it, any questions just holler.


Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

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 security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

729 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