1PDF::API2::Basic::PDF::UPsaegre(C3o)ntributed Perl DocumPeDnFt:a:tAiPoIn2::Basic::PDF::Page(3)
2
3
4

NAME

6       PDF::API2::Basic::PDF::Page - Represents a PDF page, inherits from
7       PDF::API2::Basic::PDF::Pages
8

DESCRIPTION

10       Represents a page of output in PDF. It also keeps track of the content
11       stream, any resources (such as fonts) being switched, etc.
12
13       Page inherits from Pages due to a number of shared methods. They are
14       really structurally quite different.
15

INSTANCE VARIABLES

17       A page has various working variables:
18
19       curstrm
20           The currently open stream
21

METHODS

23   PDF::API2::Basic::PDF::Page->new($pdf, $parent, $index)
24       Creates a new page based on a pages object (perhaps the root object).
25
26       The page is also added to the parent at this point, so pages are
27       ordered in a PDF document in the order in which they are created rather
28       than in the order they are closed.
29
30       Only the essential elements in the page dictionary are created here,
31       all others are either optional or can be inherited.
32
33       The optional index value indicates the index in the parent list that
34       this page should be inserted (so that new pages need not be appended)
35
36   $p->add($str)
37       Adds the string to the currently active stream for this page. If no
38       stream exists, then one is created and added to the list of streams for
39       this page.
40
41       The slightly cryptic name is an aim to keep it short given the number
42       of times people are likely to have to type it.
43
44   $p->ship_out($pdf)
45       Ships the page out to the given output file context
46
47
48
49perl v5.28.1                      2017-07-07    PDF::API2::Basic::PDF::Page(3)
Impressum