New to Telerik UI for WPF? Start a free 30-day trial

Represents a PDF document source, which can load a document from URI or stream.

Definition

Namespace:Telerik.Windows.Documents.Fixed

Assembly:Telerik.Windows.Controls.FixedDocumentViewers.dll

Syntax:

C#
[TypeConverter(typeof(PdfDocumentSourceConverter))]
public class PdfDocumentSource : FixedDocumentStreamSource

Inheritance: objectFixedDocumentStreamSourcePdfDocumentSource

Inherited Members FixedDocumentStreamSource.OnDocumentLoaded(EventArgs)FixedDocumentStreamSource.OnLoaded(EventArgs)FixedDocumentStreamSource.DocumentFixedDocumentStreamSource.LoadedFixedDocumentStreamSource.DocumentUnhandledException

Constructors

Initializes a new instance of the PdfDocumentSource class.

C#
public PdfDocumentSource(Stream stream, PdfImportSettings settings)
Parameters:streamStream

The stream from which to load the PDF document.

settingsPdfImportSettings

The settings that will be used to load the PDF document.

Initializes a new instance of the PdfDocumentSource class.

C#
public PdfDocumentSource(Stream stream)
Parameters:streamStream

The stream from which to load the PDF document.

Initializes a new instance of the PdfDocumentSource class.

C#
public PdfDocumentSource(Uri uri, PdfImportSettings settings)
Parameters:uriUri

The URI from which to load the PDF document.

settingsPdfImportSettings

The settings that will be used to load the PDF document.

Initializes a new instance of the PdfDocumentSource class.

C#
public PdfDocumentSource(Uri uri)
Parameters:uriUri

The URI from which to load the PDF document.

Methods

Ensures that any unmanaged resources are released when object instance is finalized.

C#
protected ~PdfDocumentSource()

Creates the document from a stream.

C#
protected override RadFixedDocument CreateDocumentFromStreamOverride(Stream stream, PdfImportSettings settings)
Parameters:streamStream

The stream from which to create the document.

settingsPdfImportSettings

The settings

Returns:

RadFixedDocument

Overrides: FixedDocumentStreamSource.CreateDocumentFromStreamOverride(Stream, PdfImportSettings)