Table of Contents

Class PdfContents

Namespace
PdfSharp.Pdf.Advanced
Assembly
PdfSharp-gdi.dll

Represents an array of PDF content streams of a page.

public sealed class PdfContents : PdfArray, ICloneable, IEnumerable<PdfItem>, IEnumerable
Inheritance
PdfContents
Implements
Inherited Members

Constructors

PdfContents(PdfDocument)

Initializes a new instance of the PdfContents class.

public PdfContents(PdfDocument document)

Parameters

document PdfDocument

The document.

Methods

AppendContent()

Appends a new content stream and returns it.

public PdfContent AppendContent()

Returns

PdfContent

CreateSingleContent()

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()

Returns

PdfContent

GetEnumerator()

Gets the enumerator.

public IEnumerator<PdfContent> GetEnumerator()

Returns

IEnumerator<PdfContent>

PrependContent()

Prepends a new content stream and returns it.

public PdfContent PrependContent()

Returns

PdfContent

ReplaceContent(CSequence)

Replaces the current content of the page with the specified content sequence.

public PdfContent ReplaceContent(CSequence cseq)

Parameters

cseq CSequence

Returns

PdfContent