This should be doable. The Win32::Printer modules should help you select the printer to send to if necessary. For printing, you could shell out to the command line for actual printing with system() or even backticks.

I don't know if you have tried command line printing with adobe acrobat, but I have never been able to get it to work. I even called Adobe's support line once and the person I spoke to said it wasn't possible. For command line printing, I usually use GSView/Ghostscript ( http://www.cs.wisc.edu/~ghost/gsview/get45.htm, http://www.cs.wisc.edu/~ghost/doc/AFPL/get811.htm). With ghostscript, you can actually specify the printer to print to on the command line which might obviate the need for the Win32::Printer modules.

Unfortunately, although I do a fair amount of this sort of processing and printing, it usually takes a little finagaling to get it working correctly.

Good Luck
PJ

In reply to Re: Print a PDF from a script by periapt
in thread Print a PDF from a script by Chief Engineer Scott

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.