PDF::Bu...F::Page(3)
β¨ PDF::Builder::Basic::PDF::Page β¨
okay so bestie, welcome to the Page module from PDF::Builder::Basic::PDF β literally the thing that represents a PDF page π (this is a User Contributed Perl Documentation page, and the module it's about is PDF::Builder::Basic::PDF::Page).
It inherits from PDF::Builder::Basic::PDF::Pages, and honestly? the family tree is giving "we share methods but we're built different" π¦
π NAME π
PDF::Builder::Basic::PDF::Page β Represents a PDF page πΈ
Inherits from PDF::Builder::Basic::PDF::Pages π
π¦ DESCRIPTION π¦
So this class represents a page of output in PDF. It's also the one keeping track of the content stream, any resources (such as fonts) being switched, etc. like a little notebook πβ¨
And yes, Page inherits from Pages because of a number of shared methods β but lowkey they are really structurally quite different. Fr fr. Same vibe, different skeleton π
π INSTANCE VARIABLES π
A page has various working variables, and here's the one:
' curstrm'β the currently open stream β¨
bestie I am copying this character for character, yes there's a space in there, do not come for me π
π METHODS π
new
PDF::Builder::Basic::PDF::Page->new($pdf, $parent, $index)
Creates a new page based on a pages object (perhaps the root object) π
The page is also added to the parent at this point, so pages are ordered in a PDF document in the order in which they are created rather than in the order they are closed. That's the whole main character energy of ordering, no cap π
Only the essential elements in the page dictionary are created here β all others are either optional or can be inherited. Keep it minimal, slay π
The optional index value indicates the index in the parent list that this page should be inserted (so that new pages need not be appended) π
ship_out
$p->ship_out($pdf)
Ships the page out to the given output file context π’β¨
πΈ SIGN-OFF πΈ
That's the whole page, bestie β go forth and build PDFs, you absolute icon π«Ά
This doc is from perl v5.42.0, dated 2026-01-17 β yeah, iconic behavior, we love to see it ππβ
π¦ where this page comes from
- fedora 44: perl-PDF-Builder 3.028-2.fc44 Β· LGPL-2.1-or-later AND LGPL-2.1-only AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms