New to Telerik Document Processing? Start a free 30-day trial

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.Documents.Fixed.FormatProviders.Pdf.Streaming

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public sealed class PdfPageStreamWriter : IDisposable

Inheritance: objectPdfPageStreamWriter

Implements: IDisposable

Properties

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

C#
public IPosition ContentPosition { get; set; }

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

C#
public Rect CropBox { get; }

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

C#
public Rect MediaBox { get; }

The page rotation applied during display or printing.

C#
public Rotation PageRotation { get; }

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

C#
public Size PageSize { get; }

Methods

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

C#
public void Dispose()

Implements: IDisposable.Dispose()

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

C#
public IDisposable SaveContentPosition()
Returns:

IDisposable

IDisposable action that restores the position when disposed.

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

C#
public void WriteContent(PdfPageSource pdfPageSource)
Parameters:pdfPageSourcePdfPageSource

The PDF page source.

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

C#
public void WriteContent(RadFixedPage page)
Parameters:pageRadFixedPage

The page instace.