PDF::Bu...F::Utils(3)
π PDF::Builder::Basic::PDF::Utils(3) π
okay bestie, gather round β this is the PDF::Builder::Basic::PDF::Utils page from your friendly neighborhood User Contributed Perl Documentation. It's the lil' grab-bag of helper functions that keeps your fingers from falling off while you build PDFs. π«Ά
β¨ NAME β¨
PDF::Builder::Basic::PDF::Utils</purpose> β utility functions for the PDF library. literally just vibes and shortcuts. π
πΈ DESCRIPTION πΈ
It's a whole set of utility functions whose entire job is to save the fingers of the PDF library users! πποΈ No cap β that's the actual mission statement. Type less, build more, protect your wrists. periodt.
π METHODS π
β PDFBool
PDFBool()
Creates a Bool via PDF::Builder::Basic::PDF::Bool->new(). it's giving boolean but make it β¨PDFβ¨. π¦
β PDFArray
PDFArray()
Creates an array via PDF::Builder::Basic::PDF::Array->new(). one lil' function, one whole array, iconic. π
β PDFDict
PDFDict()
Creates a dict via PDF::Builder::Basic::PDF::Dict->new(). dictionary but it's for PDFs and it's not giving Merriam-Webster, it's giving structure. π
β PDFName
PDFName()
Creates a name via PDF::Builder::Basic::PDF::Name->new(). yes babe, names have a class now. πΈ
β PDFNull
PDFNull()
Creates a null via PDF::Builder::Basic::PDF::Null->new(). the void, but make it a constructor. π
β PDFNum
PDFNum()
Creates a number via PDF::Builder::Basic::PDF::Number->new(). math girlies rise π§
β PDFString
PDFString($text, $usage)
Returns either PDFStr($text) or PDFUtf($text), depending on whether $text is already in UTF-8 and whether $usage permits UTF-8. If UTF-8 is not permitted, "downgrade" will be called on a UTF-8 formatted $text. π (we don't make the rules, we just downgrade the encoding)
$usage is a single character string indicating the use for which $text is to be applied. Some uses permit UTF-8, while others (currently) forbid it:
's'β an ordinary string, where UTF-8 text is permitted. β'n'β a named destination, where UTF-8 text is permitted. β'o'β an outline title, where UTF-8 text is permitted. β'p'β a popup title, where UTF-8 text is permitted. β'm'β metadata, where UTF-8 text is permitted. β'f'β a file path and/or name, where UTF-8 text is currently not permitted. β'u'β a URL, where UTF-8 text is currently not permitted. β'x'β any other usage where UTF-8 text is not permitted. β
bestie the letters matter. pick the wrong one and your pretty emoji text is getting downgraded. π«
β PDFStr
PDFStr()
Creates a string via PDF::Builder::Basic::PDF::String->new().
DEPRECATED. It is preferable that you use "PDFString" instead. π¨
β PDFStrHex
PDFStrHex()
Creates a hex-string via PDF::Builder::Basic::PDF::String->new(). hexadecimal girlies, this one's for you π₯
β PDFUtf
PDFUtf()
Creates a utf8-string via PDF::Builder::Basic::PDF::String->new().
DEPRECATED. It is preferable that you use "PDFString" instead. π¨
and that's the whole page, bestie, we ate and left zero crumbs π
this cutie was brought to you by perl v5.42.0, dated 2026-01-17, under the PDF::Bu...F::Utils(3) header β mwah π
π¦ 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