Class
ByteArrayDocumentSource

Represents a document source that loads PDF documents from a byte array.

Definition

Constructors

ByteArrayDocumentSource()

Initializes a new instance of the ByteArrayDocumentSource class.

Declaration

cs-api-definition
public ByteArrayDocumentSource()

ByteArrayDocumentSource(byte[], bool)

Initializes a new instance of the ByteArrayDocumentSource class with the specified byte array.

Declaration

cs-api-definition
public ByteArrayDocumentSource(byte[] bytes, bool readBytesAsync = true)

Parameters

bytes

byte[]

The byte array containing the PDF document data.

readBytesAsync

bool

A value indicating whether to import the bytes asynchronously. The default value is true.

Properties

Bytes

Gets or sets the byte array containing the PDF document data.

Declaration

cs-api-definition
public byte[] Bytes { get; set; }

Property Value

byte[]

The byte array containing the PDF document data.

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 document import is performed asynchronously; otherwise, false. The default value is true.

Operators

implicit operator ByteArrayDocumentSource(byte[])

Performs an implicit conversion from a byte array to ByteArrayDocumentSource.

Declaration

cs-api-definition
public static implicit operator ByteArrayDocumentSource(byte[] bytes)

Parameters

bytes

byte[]

The byte array to convert.

Returns

ByteArrayDocumentSource

A new ByteArrayDocumentSource instance with the specified byte array.