1PDF::API2::Basic::PDF::UNsaemre(C3o)ntributed Perl DocumPeDnFt:a:tAiPoIn2::Basic::PDF::Name(3)
2
3
4
6 PDF::API2::Basic::PDF::Name - Low-level PDF name object
7
9 PDF::API2::Basic::PDF::Name->from_pdf($string)
10 Creates a new string object (not a full object yet) from a given
11 string. The string is parsed according to input criteria with escaping
12 working, particular to Names.
13
14 $n->convert ($string, $pdf)
15 Converts a name into a string by removing the / and converting any hex
16 munging.
17
18 $s->as_pdf ($pdf)
19 Returns a name formatted as PDF. $pdf is optional but should be the
20 PDF File object for which the name is intended if supplied.
21
22 PDF::API2::Basic::PDF::Name->string_to_name ($string, $pdf)
23 Suitably encode the string $string for output in the File object $pdf
24 (the exact format may depend on the version of $pdf).
25
26 PDF::API2::Basic::PDF::Name->name_to_string ($string, $pdf)
27 Suitably decode the string $string as read from the File object $pdf
28 (the exact decoding may depend on the version of $pdf). Principally,
29 undo the hex encoding for PDF versions > 1.1.
30
31
32
33perl v5.36.0 2022-07-22 PDF::API2::Basic::PDF::Name(3)