1Print(3) User Contributed Perl Documentation Print(3)
2
3
4
6 Gnome2::Print - Perl wrappers for the Gnome Print utilities.
7
9 use Gnome2::Print;
10
11 my $job = Gnome2::Print::Job->new;
12 my $config = $job->get_config;
13 my $pc = $job->get_context;
14
15 my ($width, $height) = $config->get_page_size;
16
17 $pc->beginpage("1");
18
19 $pc->setlinewidth(3.0);
20 $pc->rect_stroked($width * .1, $height * .1, $width * .9, $height * .9);
21
22 $pc->showpage;
23
24 $job->render($pc);
25 $job->close;
26
28 Perl bindings to the 2.2 series of the Gnome Print libraries, for use
29 with gtk2-perl.
30
32 This module allows you to use the GNOME Print libraries within your
33 applications written using the gtk2-perl wrapper. The GNOME Print
34 libraries (also known as libgnomeprint and libgnomeprintui) allow you
35 to create printable documents (using various frontends) and offer
36 standard widgets in order to mainatin a UI consistent for all GNOME
37 applications.
38
39 To discuss gtk2-perl, ask questions and flame/praise the authors, join
40 gtk-perl-list@gnome.org at lists.gnome.org.
41
42 Find out more about GNOME at http://www.gnome.org.
43
45 With the release of GTK+ 2.10 both libgnomeprint and libgnomeprintui
46 have been marked as deprecated and should not be used in newly released
47 code.
48
49 In order to use the new Print support in GTK+ you have to use the Gtk2
50 module version >= 1.140 compiled against GTK+ >= 2.10.0.
51
53 perl(1), Glib(3pm), Gtk2(3pm), Gnome2(3pm).
54
56 Emmanuele Bassi <emmanuele.bassi@iol.it>, muppet <scott at asofyet dot
57 org>
58
60 Copyright 2003-2006 by Emmanuele Bassi
61
62 Copyright 2003 by muppet
63
64 This library is free software; you can redistribute it and/or modify it
65 under the same terms as Perl itself.
66
67
68
69perl v5.12.0 2006-11-15 Print(3)