PDF::AP...::String(3)
π NAME π
PDF::API2::Basic::PDF::String β bestie, it's a low-level PDF string object. That's the whole vibe. π
β¨ METHODS β¨
πΈ PDF::API2::Basic::PDF::String->from_pdf($string)
Okay so this one makes you a brand-new string object β and heads up, it's not a full object yet, it's just the string part, okay? It takes the $string you hand it and parses it according to the input criteria, and yes, escaping is fully working here. Slay. π
π¦ PDF::API2::Basic::PDF::String->new($string)
Literally the same energy as above, fr fr: creates a new string object (again, not a full object yet) from the $string you give it. The string gets parsed according to input criteria, escaping working and all. β¨
π $s->convert($str)
Give it $str and it hands you back $str converted as per the criteria for input from a PDF file. That's it, that's the whole job. π
π $s->val
Returns the value of this string β which is, like, the string itself. Iconic behavior honestly. πΈ
β $->as_pdf
Returns the string all formatted for output as PDF, for the PDF File object $pdf. Main character formatting moment. π₯
π $s->outobjdeep
Outputs the string in PDF format, complete with all the necessary conversions. It does the deep work so you don't have to. πͺ
And that's the whole page, bestie! This was pulled from the User Contributed Perl Documentation for perl v5.42.0, dated 2025-09-01 β so like, remember the version and the date, iykyk. Now go parse some strings, you absolute legend. π«Άπβ¨
π¦ where this page comes from
- fedora 43: perl-PDF-API2 2.048-1.fc43 Β· LGPL-2.1-or-later AND (GPL-1.0-or-later OR Artistic-1.0-Perl) AND (MIT OR Artistic-1.0-Perl)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms