1PDF::API2::Basic::PDF::UNsaemre(C3o)ntributed Perl DocumPeDnFt:a:tAiPoIn2::Basic::PDF::Name(3)
2
3
4

NAME

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

METHODS

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 ($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
22       PDF File object for which the name is intended if supplied.
23
24   PDF::API2::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::API2::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.0                      2020-07-28    PDF::API2::Basic::PDF::Name(3)
Impressum