Class
FileDocumentSource

Represents a PDF document source that loads documents from a file path.

Definition

Constructors

FileDocumentSource()

Initializes a new instance of the FileDocumentSource class.

Declaration

cs-api-definition
public FileDocumentSource()

FileDocumentSource(string, bool)

Initializes a new instance of the FileDocumentSource class with the specified file path and import mode.

Declaration

cs-api-definition
public FileDocumentSource(string filePath, bool isImportAsync = true)

Parameters

filePath

string

The path to the PDF file.

isImportAsync

bool

A value indicating whether the import operation should be performed asynchronously.

Properties

FilePath

Gets or sets the path to the PDF file.

Declaration

cs-api-definition
public string FilePath { get; set; }

Property Value

string

A string representing the file path.

IsImportAsync

Gets or sets a value indicating whether the document import should be performed asynchronously.

Declaration

cs-api-definition
public bool IsImportAsync { get; set; }

Property Value

bool

true if the import is asynchronous; otherwise, false.

Operators

implicit operator FileDocumentSource(string)

Performs an implicit conversion from string to FileDocumentSource.

Declaration

cs-api-definition
public static implicit operator FileDocumentSource(string filePath)

Parameters

filePath

string

The file path to convert.

Returns

FileDocumentSource

A new FileDocumentSource instance with the specified file path.