Text::PDF::Utils(3pm)
β¨ Text::PDF::Utils β¨
okay bestie, so this is Text::PDF::Utils, a little Perl module from the User Contributed Perl Documentation collection π«Ά it lives in the Text::PDF family and it's literally just a pile of helper functions for the PDF library. no cap.
π DESCRIPTION π
A set of utility functions to save the fingers of the PDF library users! π
that's it, that's the whole pitch. it's giving quality of life. you don't have to type out all the long constructor calls yourself, you just scream a tiny function name and boom π
πΈ FUNCTIONS πΈ
π¦ PDFBool
Creates a Bool via Text::PDF::Bool->new β¨
π¦ PDFArray
Creates an array via Text::PDF::Array->new β¨
π¦ PDFDict
Creates a dict via Text::PDF::Dict->new β¨
π¦ PDFName
Creates a name via Text::PDF::Name->new β¨
π¦ PDFNum
Creates a number via Text::PDF::Number->new β¨
π¦ PDFStr
Creates a string via Text::PDF::String->new β¨
π§ asPDFBool
Returns a boolean value in PDF output form π
π§ asPDFStr
Returns a string in PDF output form (including () or <>) π
π§ asPDFName
Returns a Name in PDF Output form (including /) π
not me capitalising "Output" there, that's literally what the original says, we respect the original here fr fr π
π§ asPDFNum
Returns a number in PDF output form π
π unpacku($str)
Returns a list of unicode values for the given UTF8 string π«Ά
like, you hand it a <italic>$str</italic> and it hands you back a whole list of unicode values. obsessed. it's giving decoding main character energy π
and that's the whole page bestie, we ate and left no crumbs π
this gorgeous little doc is from perl v5.36.0, dated 2022-10-22, and it's the Text::PDF::Utils(3pm) page β periodt. πβ¨
π¦ where this page comes from
- ubuntu noble: libtext-pdf-perl 0.31-3 Β· Artistic-2.0
- ubuntu resolute: libtext-pdf-perl 0.31-3 Β· Artistic-2.0
- ubuntu stonking: libtext-pdf-perl 0.31-3 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms