Text::PDF::Utils(3pm)

πŸ“¦
version 0.31 Β· 5 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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