1Net::CUPS::Destination(U3s)er Contributed Perl DocumentatNieotn::CUPS::Destination(3)
2
3
4

NAME

6       Net::CUPS::Destination - CUPS Destination Object
7

SYNOPSIS

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

DESCRIPTION

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
24       destination in CUPS.  Destinations will most likely be a printer, but
25       it can be any type of target in which a file is sent for processing.
26

METHODS

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       getDescription
39           my $description = $dest->getDescription();
40
41           Provides the description string associated with this printer.
42
43       getError
44           my $error = $dest->getError();
45
46           Utility method for returning the last error that occured.
47
48       getName
49           my $name = $dest->getName();
50
51           Method to return the name of the destination.
52
53       getJob
54           my $job = $dest->getJob( $jobid )
55
56           Method to get a specific job as a hash of attributes.
57
58       getJobs
59           my @jobs = $dest->getJobs( $whose, $scope );
60
61           This method will return an array of job identifiers.  $whose is 0
62           for all users and 1 is just for the selected user.  $scope is -1
63           for all jobs, 0 for active jobs and 1 for completed jobs.
64
65       getLocation
66           Returns the location string for this destination.
67
68       getOptionValue
69           my $value = $dest->getOptionValue( $name );
70
71           This utility method will return the value of the selected option.
72
73       getOptions
74           my @options = $dest->getOptions();
75
76           This method will return an array of the options currently set on
77           the destination.
78
79       printFile
80           my $jobid = $dest->printFile( $filename, $title );
81
82           I know this is the method that you have been looking for.  This is
83           what you will use to send a file to handled by the destination.
84           You must provide the name of the file and a title for the job.
85
86       getUri
87           my $uri = $dest->getUri();
88
89           This function returns the device URI of a destination.  For
90           example, a network printer might appear as socket://192.168.1.1
91

SEE ALSO

93       Net::CUPS, Net::CUPS::PPD, Net::CUPS::IPP
94

SUPPORT

96       Support for this module and other software developed by Dracken
97       Technology, Inc can be found at http://www.dracken.com/.
98

AUTHOR

100       Dracken Technology, Inc. (http://www.dracken.com/)
101
103       Copyright (c) 2003-2005 David Hageman
104
105       Copyright (c) 2006-2009 Dracken Technology, Inc.
106
107       All rights reserved.
108
109       This library is free software; you can redistribute it and/or modify it
110       under the same terms as Perl itself, either Perl version 5.8.8 or, at
111       your option, any later version of Perl 5 you may have available.
112
113       CUPS, the Common UNIX Printing System, the CUPS logo, and ESP Print Pro
114       are the trademark property of Easy Software Products.
115
116
117
118perl v5.12.0                      2009-08-19         Net::CUPS::Destination(3)
Impressum