1PDF::API2::Basic::PDF::UNsaemre(C3o)ntributed Perl DocumPeDnFt:a:tAiPoIn2::Basic::PDF::Name(3)
2
3
4
6 PDF::API2::Basic::PDF::Name - Inherits from
7 PDF::API2::Basic::PDF::String and stores PDF names (things beginning
8 with /)
9
11 PDF::API2::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 ($str, $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
22 PDF File object for which the name is intended if supplied.
23
24 PDF::API2::Basic::PDF::Name->string_to_name ($str, $pdf)
25 Suitably encode the string $str for output in the File object $pdf (the
26 exact format may depend on the version of $pdf).
27
28 Note: This function only encodes names properly for PDF version 1.2 and
29 higher.
30
31 PDF::API2::Basic::PDF::Name->name_to_string ($str, $pdf)
32 Suitably decode the string $str as read from the File object $pdf (the
33 exact decoding may depend on the version of $pdf). Principally, undo
34 the hex encoding for PDF versions > 1.1.
35
36
37
38perl v5.12.2 2011-01-24 PDF::API2::Basic::PDF::Name(3)