{
    "mode": "perldoc",
    "parameter": "PDF::API2::Basic::PDF::Name",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/PDF%3A%3AAPI2%3A%3ABasic%3A%3APDF%3A%3AName/json",
    "generated": "2026-06-13T16:10:22Z",
    "sections": {
        "NAME": {
            "content": "PDF::API2::Basic::PDF::Name - Low-level PDF name object\n",
            "subsections": []
        },
        "METHODS": {
            "content": "PDF::API2::Basic::PDF::Name->frompdf($string)\nCreates a new string object (not a full object yet) from a given string. The string is parsed\naccording to input criteria with escaping working, particular to Names.\n\n$n->convert ($string, $pdf)\nConverts a name into a string by removing the / and converting any hex munging.\n\n$s->aspdf ($pdf)\nReturns a name formatted as PDF. $pdf is optional but should be the PDF File object for which\nthe name is intended if supplied.\n\nPDF::API2::Basic::PDF::Name->stringtoname ($string, $pdf)\nSuitably encode the string $string for output in the File object $pdf (the exact format may\ndepend on the version of $pdf).\n\nPDF::API2::Basic::PDF::Name->nametostring ($string, $pdf)\nSuitably decode the string $string as read from the File object $pdf (the exact decoding may\ndepend on the version of $pdf). Principally, undo the hex encoding for PDF versions > 1.1.\n",
            "subsections": []
        }
    },
    "summary": "PDF::API2::Basic::PDF::Name - Low-level PDF name object",
    "flags": [],
    "examples": [],
    "see_also": []
}