Net::CUPS::Destination

Net::CUPS::Destination is a CUPS Destination Object.
Download

Net::CUPS::Destination Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Dracken Technology, Inc.
  • Publisher web site:
  • http://search.cpan.org/~dhageman/Net-CUPS-0.55/lib/Net/CUPS.pm

Net::CUPS::Destination Tags


Net::CUPS::Destination Description

Net::CUPS::Destination is a CUPS Destination Object. SYNOPSIS use Net::CUPS::Destination; my $printer = $cups->getDestination( "lj4200dn" ); my $name = $printer->getName(); my @options = $printer->getOptions(); my $jobid = $printer->printFile( $filename, $title );Net::CUPS is an object oriented interface to the Common Unix Printing System.Net::CUPS::Destination is an abstraction of the concept of a destination in CUPS. Destinations will most likely be a printer, but it can be any type of target in which a file is sent for processing.METHODSaddOption$dest->addOption( $name, $value );Method to add another option name/value pair to the destination.cancelJobmy $dest->cancelJob( $jobid );Method to chancel a job sent to this destination.getErrormy $error = $dest->getError();Utility method for returning the last error that occured.getNamemy $name = $dest->getName();Method to return the name of the destination.getJobmy $job = $dest->getJob( $jobid )Method to get a specific job as a hash of attributes.getJobsmy @jobs = $dest->getJobs( $whose, $scope );This method will return an array of job identifiers. $whose is 0 for all users and 1 is just for the selected user. $scope is -1 for all jobs, 0 for active jobs and 1 for completed jobs.getOptionValuemy $value = $dest->getOptionValue( $name );This utility method will return the value of the selected option.getOptionsmy @options = $dest->getOptions();This method will return an array of the options currently set on the destination.printFilemy $jobid = $dest->printFile( $filename, $title );I know this is the method that you have been looking for. This is what you will use to send a file to handled by the destination. You must provide the name of the file and a title for the job. Requirements: · Perl


Net::CUPS::Destination Related Software