perldoc > PDF::API2::Basic::PDF::Pages

📄 NAME

PDF::API2::Basic::PDF::Pages - Low-level page tree object

🚀 Quick Reference

Use CaseCommandDescription
Create a new pages objectPDF::API2::Basic::PDF::Pages->new($pdf, $parent)Create a new Pages object in a PDF (root node if $parent is file context)
Find a page by number$p->find_page($page_number)Return the page object for the given page number (0‑based)
Insert a page at a position$p->add_page($page, $page_number)Insert a page before the given page number; negative counts from end
Get all pages in order$p->get_pages()Return a list of page objects in document order
Find an inherited property$p->find_prop($key)Search up the inheritance tree for a property
Add a font to resources$p->add_font($pdf, $font)Add font to the resource dictionary at this level (if not already inherited)
Set bounding box$p->bbox($xmin, $ymin, $xmax, $ymax, [$param])Set the bounding box for this and all child pages
Ensure proc set entries$p->proc_set(@entries)Ensure the current resource contains the listed proc set entries
Get top of pages tree$p->get_topReturn the root of the pages tree

📖 DESCRIPTION

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

⚙️ METHODS

PDF::API2::Basic::PDF::Pages
📄 NAME 🚀 Quick Reference 📖 DESCRIPTION ⚙️ METHODS

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 08:07 @216.73.216.194
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format