[]
        
(Showing Draft Content)

C1.WPF.Document.C1PdfDocumentSource

C1PdfDocumentSource Class

Represents a document source which loads and renders PDF documents.

Inheritance
C1PdfDocumentSource
Implements
Namespace: C1.WPF.Document
Assembly: C1.WPF.Document.4.6.2.dll
Syntax
public class C1PdfDocumentSource : C1DocumentSource, IComponent, IDisposable

Constructors

Name Description
C1PdfDocumentSource()

Initializes a new instance of the C1PdfDocumentSource class.

C1PdfDocumentSource(IContainer)

Initializes a new instance of the C1PdfDocumentSource class.

Properties

Name Description
Credential

Overridden. Gets or sets NetworkCredential object defining credentials used in the PDF Document.

Document

Gets a C1Document object produced by the current document source.

DocumentLocation

Gets or sets the location of the PDF document. Assigning a new value to this property will reset Stream to null.

DocumentName

Gets a name of the document.

Features

Gets the C1DocumentSourceFeatures object specifying the set of features supported by this C1DocumentSource.

Stream

Gets or sets the Stream object containing PDF content. Assigning this property new value will reset DocumentLocation to null.

SupportedExportProviders

Overridden. Gets an array of exporters supported by the current document source object.

Methods

Name Description
GetContext()

For internal use. Returns a C1DocumentSourceContext object representing the current context of the C1DocumentSource.

GetDocumentRange(C1DocumentTextPosition, C1DocumentTextPosition, IC1TextMeasurementContext)

Creates the C1.WPF.Document.C1DocumentRange object on the base of two text positions specified by C1.WPF.Document.C1DocumentTextPosition objects.

GetPageDocumentRange(C1Page, IC1TextMeasurementContext)

Creates a C1.WPF.Document.C1DocumentRange object that includes the specified page. This method can return null if the page contains no text.

GetPageMetafile(int, out Metafile, out bool)

For internal use. Returns metafile representing the page with specified index.

GetWholeDocumentRange(IC1TextMeasurementContext)

Creates a C1.WPF.Document.C1DocumentRange object that includes the whole document. This method can return null if the document contains no text.

Init()

For internal use. It is called from the constructor.

LoadFromFile(string)

Loads document from file.

LoadFromStream(Stream)

Loads document from Stream.

ResetDocumentLocation()

Resets value of the DocumentLocation property to default value.

SetContext(C1DocumentSourceContext)

For internal use. Sets the context for the current C1DocumentSource.

ShouldSerializeDocumentLocation()

Indicates whether the DocumentLocation property should be persisted.