Table of Contents

Class PdfObject

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

Base class of all PDF objects that can be used indirectly.

public abstract class PdfObject : PdfItem
Inheritance
object
PdfObject
Derived
Extension Methods

Constructors

PdfObject()

Initializes a new instance of the PdfObject class.

PdfObject(PdfDocument, bool)

Initializes a new instance of the PdfObject class.

PdfObject(PdfObject)

Initializes a new instance from an existing object. Used for object type transformation.

Properties

Comment

Gets or sets the comment for debugging purposes.

Document

Sets the PdfDocument this object belongs to.

Internals

Gets the PdfInternals object of this document, that grants access to some internal structures which are not part of the public interface of PdfDocument.

IsIndirect

Indicates whether the object is an indirect object.

Owner

Gets the PdfDocument this object belongs to.

Reference

Gets the indirect reference of this object. If the value is null, this object is a direct object.

ReferenceNotNull

Gets the indirect reference of this object. Throws if it is null.

RequiredReference

Gets the indirect reference of this object. Throws if it is null.

Methods

Clone()

Creates a copy of this object. The clone does not belong to a document, i.e. its owner and its iref are null.

Copy()

Implements the copy mechanism. Must be overridden in derived classes.