1Net::CUPS::Destination(U3s)er Contributed Perl DocumentatNieotn::CUPS::Destination(3)
2
3
4
6 Net::CUPS::Destination - CUPS Destination Object
7
9 use Net::CUPS::Destination;
10
11 my $printer = $cups->getDestination( "lj4200dn" );
12
13 my $name = $printer->getName();
14
15 my @options = $printer->getOptions();
16
17 my $jobid = $printer->printFile( $filename, $title );
18
20 Net::CUPS is an object oriented interface to the Common Unix Printing
21 System.
22
23 Net::CUPS::Destination is an abstraction of the concept of a destina‐
24 tion in CUPS. Destinations will most likely be a printer, but it can
25 be any type of target in which a file is sent for processing.
26
28 addOption
29 $dest->addOption( $name, $value );
30
31 Method to add another option name/value pair to the destination.
32
33 cancelJob
34 my $dest->cancelJob( $jobid );
35
36 Method to chancel a job sent to this destination.
37
38 getError
39 my $error = $dest->getError();
40
41 Utility method for returning the last error that occured.
42
43 getName
44 my $name = $dest->getName();
45
46 Method to return the name of the destination.
47
48 getJob
49 my $job = $dest->getJob( $jobid )
50
51 Method to get a specific job as a hash of attributes.
52
53 getJobs
54 my @jobs = $dest->getJobs( $whose, $scope );
55
56 This method will return an array of job identifiers. $whose is 0
57 for all users and 1 is just for the selected user. $scope is -1
58 for all jobs, 0 for active jobs and 1 for completed jobs.
59
60 getOptionValue
61 my $value = $dest->getOptionValue( $name );
62
63 This utility method will return the value of the selected option.
64
65 getOptions
66 my @options = $dest->getOptions();
67
68 This method will return an array of the options currently set on
69 the destination.
70
71 printFile
72 my $jobid = $dest->printFile( $filename, $title );
73
74 I know this is the method that you have been looking for. This is
75 what you will use to send a file to handled by the destination.
76 You must provide the name of the file and a title for the job.
77
79 Net::CUPS, Net::CUPS::PPD, Net::CUPS::IPP
80
82 Support for this module and other software developed by Dracken Tech‐
83 nology, Inc can be found at http://www.dracken.com/.
84
86 Dracken Technology, Inc. (http://www.dracken.com/)
87
89 Copyright (c) 2003-2005 David Hageman
90
91 Copyright (c) 2006-2007 Dracken Technology, Inc.
92
93 All rights reserved.
94
95 This library is free software; you can redistribute it and/or modify it
96 under the same terms as Perl itself, either Perl version 5.8.8 or, at
97 your option, any later version of Perl 5 you may have available.
98
99 CUPS, the Common UNIX Printing System, the CUPS logo, and ESP Print Pro
100 are the trademark property of Easy Software Products.
101
102
103
104perl v5.8.8 2007-10-11 Net::CUPS::Destination(3)