CTS logo
hazy blue Catskill Mountains in distance

News:


A Thought…

God made the cat in order that humankind might have the pleasure of caressing the tiger.

   — Fernand Mery

NAME

PDF::Builder::Basic::PDF::Name - Stores PDF names (things beginning with /)

Inherits from PDF::Builder::Basic::PDF::String

METHODS

from_pdf

    $n = PDF::Builder::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.

convert

    $n->convert($string, $pdf)
Converts a name into a string by removing the / and converting any hex munging.

as_pdf

    $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.

string_to_name

    PDF::Builder::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).

name_to_string

    PDF::Builder::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.

NAVIGATION LINKS

Up (Parents)

Master Index
PDF::Builder -- Facilitates the creation and modification of PDF files
PDF::Builder::Basic::PDF -- Various utilities and support routines

Siblings

PDF::Builder::Basic::PDF::Array -- Corresponds to a PDF array
PDF::Builder::Basic::PDF::Bool -- Holds the strings true or false
PDF::Builder::Basic::PDF::Dict -- PDF Dictionaries and Streams
PDF::Builder::Basic::PDF::File -- Holds the trailers and cross-reference tables for a PDF file
PDF::Builder::Basic::PDF::Filter -- Abstract superclass for PDF stream filters
PDF::Builder::Basic::PDF::Literal -- Literal PDF Object
PDF::Builder::Basic::PDF::Null -- PDF Null type object
PDF::Builder::Basic::PDF::Number -- Numbers in PDF
PDF::Builder::Basic::PDF::Objind -- PDF indirect object reference
PDF::Builder::Basic::PDF::Page -- Represents a PDF page
PDF::Builder::Basic::PDF::Pages -- PDF pages hierarchical element
PDF::Builder::Basic::PDF::String -- PDF String type objects
PDF::Builder::Basic::PDF::Utils -- Utility functions for PDF library

 

All content © copyright 2005 – 2025 by Catskill Technology Services, LLC.
All rights reserved.
Note that Third Party software (whether Open Source or proprietary) on this site remains under the copyright and license of its owners. Catskill Technology Services, LLC does not claim copyright over such software.

 

This page is https://www.catskilltech.com/Documentation/PDF/Builder/Basic/PDF/Name.html

Search Quotations database.

Last updated Sat, 19 Apr 2025 at 8:15 PM

Valid HTML 5

Tue, 29 Apr 2025 at 7:47 PM EDT