[]
Represents a document source which loads and renders PDF documents.
public class C1PdfDocumentSource : C1DocumentSource, IComponent, IDisposable
Name | Description |
---|---|
C1PdfDocumentSource() | Initializes a new instance of the C1PdfDocumentSource class. |
C1PdfDocumentSource(IContainer) | Initializes a new instance of the C1PdfDocumentSource class. |
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. |
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. |