Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Win32::Printer-type module for Mac OS?

by cypress (Beadle)
on Jul 10, 2009 at 11:04 UTC ( #778884=perlquestion: print w/ replies, xml ) Need Help??
cypress has asked for the wisdom of the Perl Monks concerning the following question:

Is there a printer module for use in the Mac OS environment, one that simply can (and, I suppose, "can simply") feed a file to a default printer? Thanks.

Comment on Win32::Printer-type module for Mac OS?
Re: Win32::Printer-type module for Mac OS?
by Anonymous Monk on Jul 10, 2009 at 12:37 UTC
      Yes, I may have to go with one of these. Unfortunately, neither can send a file as output to a printer -- only text or simple drawn shapes. Why should it be so difficult to specify a file? Note that even with Win32::Printer under Windows we must use Win32::Printer::Direct to name a file. Continued thanks for continued suggestions....
Re: Win32::Printer-type module for Mac OS?
by jhourcle (Prior) on Jul 10, 2009 at 19:43 UTC

    It probably helps to know what Mac's printing interface is called.

    Net::CUPS sounds promising:

    use Net::CUPS::Destination; my $printer = $cups->getDestination( "lj4200dn" ); my $jobid = $printer->printFile( $filename, $title );
Re: Win32::Printer-type module for Mac OS?
by mzedeler (Pilgrim) on Jul 10, 2009 at 19:46 UTC

    Whats wrong with lp?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://778884]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-12-28 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (179 votes), past polls