Skip to main content

Class PdfObject

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

Base type for every value that can appear in the object graph of a PDF file.

public abstract class PdfObject

Inheritance​

object ← PdfObject

Derived​

PdfArray, PdfBoolean, PdfDictionary, PdfInteger, PdfName, PdfNull, PdfReal, PdfReference, PdfStream, PdfString

Inherited Members​

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), 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?)

Remarks​

Values are deliberately close to the file format: resolving indirect references, decoding streams and interpreting semantics are the caller's business, so that a document can be manipulated without ever materializing more of it than the operation needs.

Methods​

Resolve()​

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

public virtual PdfObject Resolve()

Returns​

PdfObject