Text::...:Number(3pm)
β¨ NAME β¨
Text::PDF::Number β it's giving Numbers in PDF π and it inherits from Text::PDF::String, so it's literally pulling up with the whole String family tree behind it, periodt.
So if you're in the Text::PDF universe and you need a thing that holds a number, this is your girl. π
π¦ METHODS π¦
Two methods. That's it. Two. We love a low-maintenance icon. π
$n->convert($str) πΈ
Converts a string from PDF to internal.
And by "converts" β¦ bestie, it does nothing. Like, absolutely nothing. Zero. It just sits there, vibing. π§ββοΈ The string comes in, the string stays exactly how it is, and honestly? No cap, that's the whole job. Not every method needs to be the main character.
$n->as_pdf π₯
Converts a number to PDF format.
That's the one. That's the method that actually does the thing β takes your number and hands it back in its PDF-fitting outfit so it can go out into the wild. β¨
Heads up bestie: convert is intentionally a no-op here, so don't be out here debugging it wondering why nothing's changing. It's not broken, it's just built different. π
And that's the whole page, fr fr π«Ά This little cutie lives in the perl v5.36.0 docs, dated 2022-10-22, under the Text::...:Number(3pm) page name. Go forth and convert numbers, you absolute legend. πβ
π¦ 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