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