1Net::CUPS(3)          User Contributed Perl Documentation         Net::CUPS(3)
2
3
4

NAME

6       Net::CUPS - Common Unix Printing System Interface
7

SYNOPSIS

9         use Net::CUPS;
10
11         my $cups = Net::CUPS->new();
12
13         my $printer = $cups->getDestination( "lj4200dn" );
14

DESCRIPTION

16       Net::CUPS is an object oriented interface to the Common Unix Printing
17       System.
18

METHODS

20       getDestination
21           my $printer = $cups->getDestination( $printer_name );
22
23           This method takes the name of the printer to acquire.  If the
24           printer does not exist it will return nothing.
25
26       getDestinations
27           my @printers = $cups->getDestinations();
28
29           This method will return an array of destinations currently config‐
30           ured on the cups server.
31
32       getPassword
33           my $password = $cups->getPassword( $prompt )
34
35           Method to retrieve the password from the user via the password
36           callback.
37
38       getPPD
39           my $ppd = $cups->getPPD( $name )
40
41           Returns a Net::CUPS::PPD object for the default printer or for the
42           specified printer or class.
43
44       getServer
45           my $server_name = $cups->getServer();
46
47           A method to return either the hostname or the IP address of the
48           active print server.
49
50       getUsername
51           my $username = $cups->getUsername();
52
53           This method will return the current username associated with the
54           CUPS transaction.
55
56       requestData
57           my $result = $cups->requestData( $request, $resource, $filename );
58
59           Send an IPP request to the server.  This function is based off the
60           C CUPS function cupsDoRequest and cupsDoRequestFile.  The $filename
61           is optional.
62
63       setPasswordCB
64           $cups->setPasswordCB( $function )
65
66           Method to set the callback function to be used by getPassword.
67
68       setServer
69           $cups->setServer( $server_ip );
70
71           This method will change the current cups server to another hosts.
72
73       setUsername
74           $cups->setUsername( $username );
75
76           A method to change the username associated with CUPS interaction.
77

SEE ALSO

79       Net::CUPS::Destination, Net::CUPS::PPD, Net::CUPS::IPP
80

SUPPORT

82       Support for this module and other software developed by Dracken Tech‐
83       nology, Inc can be found at http://www.dracken.com/.
84

AUTHOR

86       Dracken Technology, Inc. (http://www.dracken.com/)
87

ACKNOWLEDGEMENTS

89       Aike Reyer <aike@users.sourceforge.net> supplied the password handling
90       code.
91
93       Copyright (c) 2003-2005 David Hageman
94
95       Copyright (c) 2006-2007 Dracken Technology, Inc.
96
97       All rights reserved.
98
99       This library is free software; you can redistribute it and/or modify it
100       under the same terms as Perl itself, either Perl version 5.8.8 or, at
101       your option, any later version of Perl 5 you may have available.
102
103       CUPS, the Common UNIX Printing System, the CUPS logo, and ESP Print Pro
104       are the trademark property of Easy Software Products.
105
106
107
108perl v5.8.8                       2007-10-11                      Net::CUPS(3)
Impressum