• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Printing (html or PDF Files)

Explorer ,
Jun 07, 2007 Jun 07, 2007

Copy link to clipboard

Copied



It might seem like a dumb question with an obvious answer, but how can I, from within a cfm script, send a html or PDF file to the printer (attached to the server).

Task as Background to question - looks easy enough. Printing seems to be the snag:
Generate a bunch of invoices as PDF. Print selected invoices that aren't going to be emailed on the big laser printer in the corner.

Yes, I know about cfexecute, but can't find reasonable guidance on how to tell adobe reader (on the command line) to print a document. Seems to rely on a user clicking on file>print; not much info available about any command line options. Some possible lead in the fact that Windows seems to know how to tell Adobe Reader to print a pdf and then close. (right click on pdf file, select print option..)


Clues anyone ?
TOPICS
Advanced techniques

Views

649

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 07, 2007 Jun 07, 2007

Copy link to clipboard

Copied

One of the easiest solutions, if you can configure the software, is to
create a watch directory. Many network aware printers and pdf tools can
be configured to watch a specific directory and print any file put into it.

To use cfexecute, I presume you would be looking at the printer driver.
It possible has some kind of command line api that allows one to call
it and tell it what to print.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 07, 2007 Jun 07, 2007

Copy link to clipboard

Copied

LATEST
well I can cause acrobat reader to print a PDF file in a cmd window using:

C:\Program Files\Adobe\Reader 8.0\Reader>acrord32.exe /p /h c:\33202_14485.pdf

Obviously I can do that inside a cfexecute, but doesnt seem like an elegant solution to me. I need to print a bunch of files in a batch process.

Can you tell me more about this idea of a watch directory, and what PDF utilities can be configured to use one ?
Thanks,...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation