1PDF::Builder::Basic::PDUFs:e:rNaCmoen(t3r)ibuted Perl DoPcDuFm:e:nBtuaitlidoenr::Basic::PDF::Name(3)
2
3
4
6 PDF::Builder::Basic::PDF::Name - Inherits from
7 PDF::Builder::Basic::PDF::String and stores PDF names (things beginning
8 with /)
9
11 $n = PDF::Builder::Basic::PDF::Name->from_pdf($string)
12 Creates a new string object (not a full object yet) from a given
13 string. The string is parsed according to input criteria with escaping
14 working, particular to Names.
15
16 $n->convert($string, $pdf)
17 Converts a name into a string by removing the / and converting any hex
18 munging.
19
20 $s->as_pdf($pdf)
21 Returns a name formatted as PDF. $pdf is optional but should be the PDF
22 File object for which the name is intended if supplied.
23
24 PDF::Builder::Basic::PDF::Name->string_to_name($string, $pdf)
25 Suitably encode the string $string for output in the File object $pdf
26 (the exact format may depend on the version of $pdf).
27
28 PDF::Builder::Basic::PDF::Name->name_to_string($string, $pdf)
29 Suitably decode the string $string as read from the File object $pdf
30 (the exact decoding may depend on the version of $pdf). Principally,
31 undo the hex encoding for PDF versions > 1.1.
32
33
34
35perl v5.32.1 2021-03-29 PDF::Builder::Basic::PDF::Name(3)