1Text::PDF::Page(3) User Contributed Perl Documentation Text::PDF::Page(3)
2
3
4
6 Text::PDF::Page - Represents a PDF page, inherits from Text::PDF::Pages
7
9 Represents a page of output in PDF. It also keeps track of the content
10 stream, any resources (such as fonts) being switched, etc.
11
12 Page inherits from Pages due to a number of shared methods. They are
13 really structurally quite different.
14
16 A page has various working variables:
17
18 curstrm
19 The currently open stream
20
22 Text::PDF::Page->new($pdf, $parent, $index)
23 Creates a new page based on a pages object (perhaps the root object).
24
25 The page is also added to the parent at this point, so pages are
26 ordered in a PDF document in the order in which they are created rather
27 than in the order they are closed.
28
29 Only the essential elements in the page dictionary are created here,
30 all others are either optional or can be inherited.
31
32 The optional index value indicates the index in the parent list that
33 this page should be inserted (so that new pages need not be appended)
34
35 $p->add($str)
36 Adds the string to the currently active stream for this page. If no
37 stream exists, then one is created and added to the list of streams for
38 this page.
39
40 The slightly cryptic name is an aim to keep it short given the number
41 of times people are likely to have to type it.
42
43 $p->ship_out($pdf)
44 Ships the page out to the given output file context
45
46
47
48perl v5.30.1 2020-01-30 Text::PDF::Page(3)