Skip to main content

Class PdfReference

Namespace: AdCodicem.Pdf.Objects
Assembly: AdCodicem.Pdf.dll

Represents an indirect reference such as 12 0 R.

public sealed class PdfReference : PdfObject

Inheritance​

object ← PdfObject ← PdfReference

Inherited Members​

PdfObject.Resolve(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Extension Methods​

PdfObjectExtensions.AsArray(PdfObject?), PdfObjectExtensions.AsBoolean(PdfObject?), PdfObjectExtensions.AsDictionary(PdfObject?), PdfObjectExtensions.AsInteger(PdfObject?), PdfObjectExtensions.AsName(PdfObject?), PdfObjectExtensions.AsNumber(PdfObject?), PdfObjectExtensions.AsStream(PdfObject?), PdfObjectExtensions.AsString(PdfObject?), PdfObjectExtensions.AsText(PdfObject?), PdfObjectExtensions.Resolved(PdfObject?)

Constructors​

PdfReference(PdfObjectId, IPdfObjectSource?)​

Initializes a reference to id resolved through source.

public PdfReference(PdfObjectId id, IPdfObjectSource? source = null)

Parameters​

id PdfObjectId

source IPdfObjectSource?

Properties​

Id​

Gets the identifier of the referenced object.

public PdfObjectId Id { get; }

Property Value​

PdfObjectId

Source​

Gets the source the reference resolves through, if any.

public IPdfObjectSource? Source { get; }

Property Value​

IPdfObjectSource?

Methods​

Resolve()​

Follows indirect references until a direct object is reached. Direct objects return themselves.

public override PdfObject Resolve()

Returns​

PdfObject

ToString()​

Returns a string that represents the current object.

public override string ToString()

Returns​

string

A string that represents the current object.