Namespace: PdfSharp.Pdf.Advanced
Represents an array of PDF content streams of a page.
public sealed class PdfContents : PdfSharp.Pdf.PdfArray, System.ICloneable, System.Collections.Generic.IEnumerable`1[[PdfSharp.Pdf.PdfItem, PdfSharp, Version=0.1.3.0, Culture=neutral, PublicKeyToken=null]], System.Collections.IEnumerable
Inheritance Object → PdfItem → PdfObject → PdfArray → PdfContents
Implements ICloneable, IEnumerable<PdfItem>, IEnumerable
Gets the collection containing the elements of this object.
public ArrayElements Elements { get; }
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 PdfContents class.
public PdfContents(PdfDocument document)
document
PdfDocument
The document.
Appends a new content stream and returns it.
public PdfContent AppendContent()
Prepends a new content stream and returns it.
public PdfContent PrependContent()
Creates a single content stream with the bytes from the array of the content streams. This operation does not modify any of the content streams in this array.
public PdfContent CreateSingleContent()
Replaces the current content of the page with the specified content sequence.
public PdfContent ReplaceContent(CSequence cseq)
cseq
CSequence
internal void WriteObject(PdfWriter writer)
writer
PdfWriter
Gets the enumerator.
public IEnumerator<PdfContent> GetEnumerator()