PDF::Objects::Name
Inherits PDF::Objects::Base < Reference < Object
Represents a PDF name object.
Names are atomic symbols uniquely defined by a sequence of characters. They are introduced by a forward slash (/) followed by the name.
Special characters in names must be escaped using a number sign (#) followed by two hexadecimal digits representing the character code.
name = PDF::Objects::Name.new("Type")
name.to_pdf # => "/Type"
special = PDF::Objects::Name.new("Name With Spaces")
special.to_pdf # => "/Name#20With#20Spaces"
Note: The slash is part of the syntax, not the name itself.
Constants
Characters that must be escaped in PDF names (whitespace, delimiters, and # itself)
Common PDF names as constants for convenience
Constructors
Instance methods
Returns true if this reference is the same as other. Invokes same?.
See Object#hash(hasher)
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.