man Text::PDF::Name () - Inherits from Text::PDF::String and stores PDF names (things beginning with /)
NAME
Text::PDF::Name - Inherits from Text::PDF::String and stores PDF names (things beginning with /)
METHODS
Text::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. Converts a name into a string by removing the / and converting any hex munging unless CW$pdf is supplied and its version is less than 1.2.
$s->as_pdf ($pdf)
Returns a name formatted as PDF. CW$pdf is optional but should be the PDF File object for which the name is intended if supplied. Suitably encode the string CW$str for output in the File object CW$pdf (the exact format may depend on the version of CW$pdf). Prinicipally, encode certain characters in hex if the version is greater than 1.1. Suitably decode the string CW$str as read from the File object CW$pdf (the exact decoding may depend on the version of CW$pdf). Principally, undo the hex encoding for PDF versions > 1.1.