PDF::API2::Basic::PDF::Name(3pm)

PDF::API2::Basic::PDF::Name3pm

Low-level pdf name object

Methods

PDF::API2::Basic::PDF::Name->from_pdf($string)

Creates a new string object (not a full object yet) from a given string. The string is parsed according to input criteria with escaping working, particular to Names.

$n->convert ($string, $pdf)

Converts a name into a string by removing the / and converting any hex munging.

$s->as_pdf ($pdf)

Returns a name formatted as PDF. $pdf is optional but should be the PDF File object for which the name is intended if supplied.

PDF::API2::Basic::PDF::Name->string_to_name ($string, $pdf)

Suitably encode the string $string for output in the File object $pdf (the exact format may depend on the version of $pdf).

PDF::API2::Basic::PDF::Name->name_to_string ($string, $pdf)

Suitably decode the string $string as read from the File object $pdf (the exact decoding may depend on the version of $pdf). Principally, undo the hex encoding for PDF versions > 1.1.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 10 times.

  1. 3.1
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10
  8. 11
  9. 12
  10. 13
  11. Arch

From perl-pdf-api2 2.048-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.