Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Win32::Printer-type module for Mac OS?

by cypress (Beadle)
on Jul 10, 2009 at 11:04 UTC ( [id://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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-20 01:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found