Table of Contents

Class PdfReference

Namespace
MiPdf.Objects
Assembly
MiPdf.dll

An indirect reference (12 0 R) to an object owned by a document.

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

Properties

Generation

The generation number of the referenced indirect object.

public int Generation { get; }

Property Value

int

ObjectNumber

The object number of the referenced indirect object.

public int ObjectNumber { get; }

Property Value

int

ObjectType

The kind of this object.

public override PdfObjectType ObjectType { get; }

Property Value

PdfObjectType

Methods

Clone()

Returns this instance; the reference is not followed.

public override PdfObject Clone()

Returns

PdfObject

Equals(PdfReference?)

True if other has the same object and generation number and belongs to the same document (object store).

public bool Equals(PdfReference? other)

Parameters

other PdfReference

Returns

bool

Equals(object?)

True if obj is an equal PdfReference; see Equals(PdfReference?).

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Resolve()

Returns the referenced object, or PdfNull if it does not exist.

public override PdfObject Resolve()

Returns

PdfObject