Class PdfExportRenderer
Represents a class that exposes all the methods and properties needed to export to PDF.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Export
Assembly: TelerikExport.dll
Syntax
public class PdfExportRenderer : IPdfExportRenderer
Constructors
PdfExportRenderer()
Declaration
public PdfExportRenderer()
Properties
Editor
Gets current page FixedContentEditor.
Declaration
public FixedContentEditor Editor { get; }
Property Value
FixedContentEditor
|
Methods
AddMatrixPagesLeftRight()
Adds matrix pages to the document row by row.
Declaration
public virtual void AddMatrixPagesLeftRight()
Implements
AddMatrixPagesUpDown()
Adds matrix pages to the document column by column.
Declaration
public virtual void AddMatrixPagesUpDown()
Implements
ApplyEditorGraphicAndTextPropertiesToBlock()
Copies current page editor graphic and text properties to current block.
Declaration
public virtual void ApplyEditorGraphicAndTextPropertiesToBlock()
Implements
CallCurrentRowPageExported()
Calls PageExported event of each page on current row.
Declaration
public virtual void CallCurrentRowPageExported()
Implements
CreateBlock()
CreateDocumentPageMatrixEditor(SizeF, ref IPdfEditor)
Initializes document, first page, first page editor and the matrix which holds all pages.
Declaration
public virtual void CreateDocumentPageMatrixEditor(SizeF pageSize, ref IPdfEditor pdfEditor)
Parameters
System.Drawing.SizeF
pageSize
Default page size. |
IPdfEditor
pdfEditor
Editor |
Implements
DrawBlock()
DrawBlock(SizeF)
Draws block.
Declaration
public virtual void DrawBlock(SizeF size)
Parameters
System.Drawing.SizeF
size
The size in which block is drawn. |
Implements
ExportDocument(Stream, String, String, String)
Calls PdfExporting event and exports the document.
Declaration
public virtual void ExportDocument(Stream stream, string author, string title, string description)
Parameters
System.IO.Stream
stream
Associated file stream. |
System.String
author
Author. |
System.String
title
Title. |
System.String
description
Description. |
Implements
GetCurrentPageEditor()
Gets current page editor.
Declaration
public virtual IPdfEditor GetCurrentPageEditor()
Returns
IPdfEditor
IPdfEditor instance |
Implements
GetCurrentPageNumber()
Gets current page number.
Declaration
public virtual int GetCurrentPageNumber()
Returns
System.Int32
|
Implements
GetDownPageEditor()
Gets the editor of the page below current in page matrix.
Declaration
public virtual IPdfEditor GetDownPageEditor()
Returns
IPdfEditor
IPdfEditor instance |
Implements
GetRightPageEditor()
Gets the editor of the page on the right of current in page matrix.
Declaration
public virtual IPdfEditor GetRightPageEditor()
Returns
IPdfEditor
IPdfEditor instance |
Implements
InsertBlockImage(Stream, Double, Double)
Inserts image in block.
Declaration
public virtual void InsertBlockImage(Stream stream, double width, double height)
Parameters
System.IO.Stream
stream
Image stream. |
System.Double
width
Width of image. |
System.Double
height
Height of image. |
Implements
InsertBlockLineBreak()
Inserts line break in block.
Declaration
public virtual void InsertBlockLineBreak()
Implements
InsertBlockText(String)
Inserts text in block.
Declaration
public virtual void InsertBlockText(string text)
Parameters
System.String
text
The text to be inserted. |
Implements
IsMatrixCurrentPageLastOnRow()
Indicates whether current page is last on row.
Declaration
public virtual bool IsMatrixCurrentPageLastOnRow()
Returns
System.Boolean
|
Implements
MeasureBlock()
Measures block.
Declaration
public virtual SizeF MeasureBlock()
Returns
System.Drawing.SizeF
Measured block size. |
Implements
MeasureBlock(SizeF)
Measures block.
Declaration
public virtual SizeF MeasureBlock(SizeF size)
Parameters
System.Drawing.SizeF
size
The size in which block is measured. |
Returns
System.Drawing.SizeF
Measured block size. |
Implements
OnPageExported(PageExportedEventArgs)
Raises the PageExported event.
Declaration
protected virtual void OnPageExported(PageExportedEventArgs e)
Parameters
PageExportedEventArgs
e
The PageExportedEventArgs instance containing the event data. |
OnPdfExporting(PdfExportingEventArgs)
Raises the PDFExporting event.
Declaration
protected virtual void OnPdfExporting(PdfExportingEventArgs e)
Parameters
PdfExportingEventArgs
e
The PdfExportingEventArgs instance containing the event data. |
SetBlockLeftIndent(Double)
Sets left indent to current block.
Declaration
public virtual void SetBlockLeftIndent(double indent)
Parameters
System.Double
indent
Indent value |
Implements
Events
PageExported
Occurs for every page that is being exported.
Declaration
public event PageExportedEventHandler PageExported
Event Type
PageExportedEventHandler
|
PdfExporting
Occurs when the export process is about to be completed.
Declaration
public event PdfExportingEventHandler PdfExporting
Event Type
PdfExportingEventHandler
|
Explicit Interface Implementations
IPdfExportRenderer.CurrentMatrixColumn
Gets or sets current matrix column.
Declaration
int IPdfExportRenderer.CurrentMatrixColumn { get; set; }
Returns
System.Int32
|
Implements
IPdfExportRenderer.CurrentMatrixRow
Gets or sets current matrix row.
Declaration
int IPdfExportRenderer.CurrentMatrixRow { get; set; }
Returns
System.Int32
|