Class
PdfPageStreamWriter

Writes a single page’s content directly to a stream in a streaming workflow; content is flushed when the writer is disposed.

Definition

Namespace:Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Streaming

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

cs-api-definition
public sealed class PdfPageStreamWriter : IDisposable

Inheritance: objectPdfPageStreamWriter

Implements: IDisposable

Properties

ContentPosition

Gets or sets the current content position within the page coordinate system, affecting subsequent drawings.

Declaration

cs-api-definition
public IPosition ContentPosition { get; set; }

Property Value

IPosition

CropBox

The rectangle defining the visible region of the page; content outside this area is clipped when displayed or printed.

Declaration

cs-api-definition
public Rect CropBox { get; }

Property Value

Rect

MediaBox

The rectangle defining the boundaries of the physical medium on which the page is intended to be displayed or printed.

Declaration

cs-api-definition
public Rect MediaBox { get; }

Property Value

Rect

PageRotation

The page rotation applied during display or printing.

Declaration

cs-api-definition
public Rotation PageRotation { get; }

Property Value

Rotation

PageSize

The size of the physical medium on which the page is intended to be displayed or printed.

Declaration

cs-api-definition
public Size PageSize { get; }

Property Value

Size

Methods

Dispose()

Finalizes the page and writes its content to the underlying stream, then releases resources.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

SaveContentPosition()

Saves the current content position and returns an IDisposable that restores it when disposed.

Declaration

cs-api-definition
public IDisposable SaveContentPosition()

Returns

IDisposable

IDisposable action that restores the position when disposed.

WriteContent(PdfPageSource)

Writes the content of the specified PdfPageSource to the current page stream.

Declaration

cs-api-definition
public void WriteContent(PdfPageSource pdfPageSource)

Parameters

pdfPageSource

PdfPageSource

The PDF page source.

WriteContent(RadFixedPage)

Writes the content of the specified RadFixedPage to the current page stream.

Declaration

cs-api-definition
public void WriteContent(RadFixedPage page)

Parameters

page

RadFixedPage

The page instace.