Class PdfName

Namespace
SoftZenPdf.Objects
Assembly
SoftZenPdf.dll

A PDF name, such as /Type: an atomic identifier used for dictionary keys and enumerated values. Names compare by value, and strings convert to names implicitly.

public sealed class PdfName : PdfObject, IEquatable<PdfName>
Inheritance
PdfName
Implements
Inherited Members

Remarks

Characters outside printable ASCII, and delimiters, are written as #xx escapes of their UTF-8 bytes.

Constructors

PdfName(string)

Creates a name.

Fields

BaseFont

/BaseFont

Catalog

/Catalog

Contents

/Contents

Count

/Count

Encoding

/Encoding

Filter

/Filter

FlateDecode

/FlateDecode

Font

/Font

Kids

/Kids

Length

/Length

MediaBox

/MediaBox

Page

/Page

Pages

/Pages

Parent

/Parent

Resources

/Resources

Root

/Root

Size

/Size

Subtype

/Subtype

Type

/Type

Type1

/Type1

WinAnsiEncoding

/WinAnsiEncoding

Properties

Value

The name without the leading slash.

Methods

Equals(PdfName?)

Whether both names have the same value (ordinal comparison).

Equals(object?)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

Operators

operator ==(PdfName?, PdfName?)

Compares two names by value.

implicit operator PdfName(string)

Converts a string to a name, so dictionary["Title"] works.

operator !=(PdfName?, PdfName?)

Compares two names by value.