1PDF::API2::Page(3)    User Contributed Perl Documentation   PDF::API2::Page(3)
2
3
4

NAME

6       PDF::API2::Page
7

METHODS

9       $page = PDF::API2::Page->new $pdf, $parent, $index
10           Returns a page object (called from $pdf->page).
11
12       $page = PDF::API2::Page->coerce $pdf, $pdfpage
13           Returns a page object converted from $pdfpage (called from
14           $pdf->openpage).
15
16       $page->update
17           Marks a page to be updated (by $pdf->update).
18
19       $page->mediabox $w, $h
20       $page->mediabox $llx, $lly, $urx, $ury
21       $page->mediabox $alias
22           Sets the mediabox.  This method supports the following aliases:
23           '4A', '2A', 'A0', 'A1', 'A2', 'A3', 'A4', 'A5', 'A6', '4B', '2B',
24           'B0', 'B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'LETTER', 'BROADSHEET',
25           'LEDGER', 'TABLOID', 'LEGAL', 'EXECUTIVE', and '36X36'.
26
27       ($llx, $lly, $urx, $ury) = $page->get_mediabox
28           Gets the mediabox based one best estimates or the default.
29
30       $page->cropbox $w, $h
31       $page->cropbox $llx, $lly, $urx, $ury
32       $page->cropbox $alias
33           Sets the cropbox.  This method supports the same aliases as
34           mediabox.
35
36       ($llx, $lly, $urx, $ury) = $page->get_cropbox
37           Gets the cropbox based one best estimates or the default.
38
39       $page->bleedbox $w, $h
40       $page->bleedbox $llx, $lly, $urx, $ury
41       $page->bleedbox $alias
42           Sets the bleedbox.  This method supports the same aliases as
43           mediabox.
44
45       ($llx, $lly, $urx, $ury) = $page->get_bleedbox
46           Gets the bleedbox based one best estimates or the default.
47
48       $page->trimbox $w, $h
49       $page->trimbox $llx, $lly, $urx, $ury
50           Sets the trimbox.  This method supports the same aliases as
51           mediabox.
52
53       ($llx, $lly, $urx, $ury) = $page->get_trimbox
54           Gets the trimbox based one best estimates or the default.
55
56       $page->artbox $w, $h
57       $page->artbox $llx, $lly, $urx, $ury
58       $page->artbox $alias
59           Sets the artbox.  This method supports the same aliases as
60           mediabox.
61
62       ($llx, $lly, $urx, $ury) = $page->get_artbox
63           Gets the artbox based one best estimates or the default.
64
65       $page->rotate $deg
66           Rotates the page by the given degrees, which must be a multiple of
67           90.
68
69           (This allows you to auto-rotate to landscape without changing the
70           mediabox!)
71
72       $gfx = $page->gfx $prepend
73           Returns a graphics content object. If $prepend is true the content
74           will be prepended to the page description.
75
76       $txt = $page->text $prepend
77           Returns a text content object. If $prepend is true the content will
78           be prepended to the page description.
79
80       $ant = $page->annotation
81           Returns a new annotation object.
82
83       $page->resource $type, $key, $obj
84           Adds a resource to the page-inheritance tree.
85
86           Example:
87
88               $co->resource('Font',$fontkey,$fontobj);
89               $co->resource('XObject',$imagekey,$imageobj);
90               $co->resource('Shading',$shadekey,$shadeobj);
91               $co->resource('ColorSpace',$spacekey,$speceobj);
92
93           Note: You only have to add the required resources, if they are NOT
94           handled by the *font*, *image*, *shade* or *space* methods.
95

AUTHOR

97       Alfred Reibenschuh
98
99
100
101perl v5.12.2                      2011-01-24                PDF::API2::Page(3)
Impressum