Namespace: PdfSharp.Pdf
Represents an indirect null value. This type is not used by PDFsharp, but at least one tool from Adobe creates PDF files with a null object.
public sealed class PdfNullObject : PdfObject, System.ICloneable
Inheritance Object → PdfItem → PdfObject → PdfNullObject
Implements ICloneable
Gets the PdfDocument this object belongs to.
public PdfDocument Owner { get; }
Indicates whether the object is an indirect object.
public bool IsIndirect { get; }
Gets the PdfInternals object of this document, that grants access to some internal structures which are not part of the public interface of PdfDocument.
public PdfObjectInternals Internals { get; }
Gets the indirect reference of this object. If the value is null, this object is a direct object.
public PdfReference Reference { get; internal set; }
Gets the indirect reference of this object. Throws if it is null.
public PdfReference ReferenceNotNull { get; }
InvalidOperationException
The indirect reference must be not null here.
Initializes a new instance of the PdfNullObject class.
public PdfNullObject()
Initializes a new instance of the PdfNullObject class.
public PdfNullObject(PdfDocument document)
document
PdfDocument
The document.
Returns the string “null”.
public string ToString()
Writes the keyword «null».
internal void WriteObject(PdfWriter writer)
writer
PdfWriter