PDF::API2::Basic::PDF::Pages - a PDF pages hierarchical element. Inherits from L<PDF::API2::Basic::PDF::Dict>


NAME

PDF::API2::Basic::PDF::Pages - a PDF pages hierarchical element. Inherits from the PDF::API2::Basic::PDF::Dict manpage


DESCRIPTION

A Pages object is the parent to other pages objects or to page objects themselves.


METHODS

PDF::API2::Basic::PDF::Pages->new($pdfs,$parent)

This creates a new Pages object. Notice that $parent here is not the file context for the object but the parent pages object for this pages. If we are using this class to create a root node, then $parent should point to the file context, which is identified by not having a Type of Pages. $pdfs is the file object (or objects) in which to create the new Pages object.

$p->add_page($page, $index)

Appends a page to this pages object. This subroutine only handles adding pages at the end of the list. But it does at least make sure there is only 8 entries in any pages list, and keep track of all the counts etc.

$index, if set, specifies the page number that the page should be inserted before. If 0, the page is appended to the file. If -ve then counts from the end.

 PDF::API2::Basic::PDF::Pages - a PDF pages hierarchical element. Inherits from L<PDF::API2::Basic::PDF::Dict>