Class PdfPageStreamWriter
Writes a single page’s content directly to a stream in a streaming workflow; content is flushed when the writer is disposed.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Streaming
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public sealed class PdfPageStreamWriter : IDisposable
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
|
IPosition
|
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
|
System.Windows.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
|
System.Windows.Rect
|
PageRotation
The page rotation applied during display or printing.
Declaration
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
public Size PageSize { get; }
Property Value
|
System.Windows.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 System.IDisposable that restores it when disposed.
Declaration
public IDisposable SaveContentPosition()
Returns
|
System.IDisposable
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
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
|
RadFixedPage
page
The page instace. |