Table of Contents

Struct PdfObjectID

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

Represents a PDF object identifier, a pair of object and generation number.

public readonly struct PdfObjectID

Constructors

PdfObjectID(int, int)

Initializes a new instance of the PdfObjectID class.

Properties

Empty

Creates an empty object identifier. Direct PDF objects have an empty ID, i.e. both numbers are zero.

GenerationNumber

Gets or sets the generation number.

IsEmpty

Indicates whether this object is an empty object identifier. This is the case if the object number is 0.

ObjectNumber

Gets or sets the object number.

UnifiedNumber

Calculates a single 64-bit unsigned integer from object and generation number.

Methods

CompareTo(object?)

Compares the current object ID with another object.

Equals(object?)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

ToString()

Returns the object and generation numbers as a string.

Operators

operator ==(PdfObjectID, PdfObjectID)

Determines whether the two objects are equal.

operator !=(PdfObjectID, PdfObjectID)

Determines whether the two objects are not equal.