Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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.

Replies are listed 'Best First'.
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 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 mzedeler (Pilgrim) on Jul 10, 2009 at 19:46 UTC

    Whats wrong with lp?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://778884]
Front-paged by Arunbear
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2017-06-27 02:58 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (598 votes). Check out past polls.