ClassPdfPageStreamWriter
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:
public sealed class PdfPageStreamWriter : IDisposable
Inheritance: objectPdfPageStreamWriter
Implements:
Properties
ContentPosition
Gets or sets the current content position within the page coordinate system, affecting subsequent drawings.
Declaration
public IPosition ContentPosition { get; set; }
Property Value
CropBox
The rectangle defining the visible region of the page; content outside this area is clipped when displayed or printed.
Declaration
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
public Rect MediaBox { get; }
Property Value
Rect
PageRotation
The page rotation applied during display or printing.
PageSize
The size of the physical medium on which the page is intended to be displayed or printed.
Declaration
public Size PageSize { get; }
Property Value
Size
Methods
Dispose()
Finalizes the page and writes its content to the underlying stream, then releases resources.
Declaration
public void Dispose()
Implements
SaveContentPosition()
Saves the current content position and returns an IDisposable that restores it when disposed.
Declaration
public IDisposable SaveContentPosition()
Returns
IDisposable action that restores the position when disposed.
WriteContent(PdfPageSource)
Writes the content of the specified PdfPageSource to the current page stream.
Declaration
public void WriteContent(PdfPageSource pdfPageSource)
Parameters
pdfPageSource
The PDF page source.
WriteContent(RadFixedPage)
Writes the content of the specified RadFixedPage to the current page stream.
Declaration
public void WriteContent(RadFixedPage page)
Parameters
page
The page instace.