PDF::Builder::Basic::PDF::Pages(3) | User Contributed Perl Documentation | PDF::Builder::Basic::PDF::Pages(3) |
NAME
PDF::Builder::Basic::PDF::Pages - a PDF pages hierarchical element. Inherits from PDF::Builder::Basic::PDF::Dict
DESCRIPTION
A Pages object is the parent to other pages objects or to page objects themselves.
METHODS
new
PDF::Builder::Basic::PDF::Pages->new($pdf, $parent)
find_page
$p->find_page($page_number)
add_page
$p->add_page($page, $page_number)
This method only guarantees to provide a reasonable pages tree if pages are appended or prepended to the document. Pages inserted in the middle of the document may simply be inserted in the appropriate leaf in the pages tree without adding any new branches or leaves, leaving it unbalanced (slower performance, but still usable).
get_pages
@objects = $p->get_pages()
find_prop
$p->find_prop($key)
add_font
$p->add_font($pdf, $font)
CAUTION: if this method was used in older releases, the code may have swapped the order of $pdf and $font, requiring ad hoc swapping of parameters in user code, contrary to the POD definition above. Now the code matches the documentation.
bbox
$p->bbox($xmin,$ymin, $xmax,$ymax, $param) $p->bbox($xmin,$ymin, $xmax,$ymax)
proc_set
$p->proc_set(@entries)
get_top
$p->get_top()
2023-12-21 | perl v5.38.1 |