1Text::PDF::Name(3)    User Contributed Perl Documentation   Text::PDF::Name(3)
2
3
4

NAME

6       Text::PDF::Name - Inherits from Text::PDF::String and stores PDF names
7       (things beginning with /)
8

METHODS

10   Text::PDF::Name->from_pdf($string)
11       Creates a new string object (not a full object yet) from a given
12       string.  The string is parsed according to input criteria with escaping
13       working, particular to Names.
14
15   $n->convert ($str, $pdf)
16       Converts a name into a string by removing the / and converting any hex
17       munging unless $pdf is supplied and its version is less than 1.2.
18
19   $s->as_pdf ($pdf)
20       Returns a name formatted as PDF.  $pdf is optional but should be the
21       PDF File object for which the name is intended if supplied.
22
23   Text::PDF::Name->string_to_name ($str, $pdf)
24       Suitably encode the string $str for output in the File object $pdf (the
25       exact format may depend on the version of $pdf).  Prinicipally, encode
26       certain characters in hex if the version is greater than 1.1.
27
28   Text::PDF::Name->name_to_string ($str, $pdf)
29       Suitably decode the string $str as read from the File object $pdf (the
30       exact decoding may depend on the version of $pdf).  Principally, undo
31       the hex encoding for PDF versions > 1.1.
32
33
34
35perl v5.28.0                      2016-08-04                Text::PDF::Name(3)
Impressum