Table of Contents

Method SplitToAttachmentsAsync

Namespace
LMKit.Extraction.Barcodes
Assembly
LM-Kit.NET.dll

SplitToAttachmentsAsync(Attachment, CancellationToken)

Splits a batch into documents held in memory, in Documents and each Document, named by FileNameTemplate.

public Task<BarcodeSplittingResult> SplitToAttachmentsAsync(Attachment source, CancellationToken cancellationToken = default)

Parameters

source Attachment

The batch.

cancellationToken CancellationToken

Cancels the run between pages and documents.

Returns

Task<BarcodeSplittingResult>

Exceptions

ArgumentNullException

source is null.

SplitToAttachmentsAsync(string, string, CancellationToken)

Splits a batch file into documents held in memory.

public Task<BarcodeSplittingResult> SplitToAttachmentsAsync(string inputPath, string password = "", CancellationToken cancellationToken = default)

Parameters

inputPath string

The batch file.

password string

The password of an encrypted PDF.

cancellationToken CancellationToken

Cancels the run between pages and documents.

Returns

Task<BarcodeSplittingResult>

SplitToAttachmentsAsync(byte[], string, string, CancellationToken)

Splits a batch held in memory into documents held in memory.

public Task<BarcodeSplittingResult> SplitToAttachmentsAsync(byte[] data, string fileName, string password = "", CancellationToken cancellationToken = default)

Parameters

data byte[]

The batch's bytes.

fileName string

The batch's name; its extension tells its type.

password string

The password of an encrypted PDF.

cancellationToken CancellationToken

Cancels the run between pages and documents.

Returns

Task<BarcodeSplittingResult>

SplitToAttachmentsAsync(Stream, string, string, CancellationToken)

Splits a batch read from a stream (left open) into documents held in memory.

public Task<BarcodeSplittingResult> SplitToAttachmentsAsync(Stream stream, string fileName, string password = "", CancellationToken cancellationToken = default)

Parameters

stream Stream

The batch's stream; a stream that cannot seek is copied once.

fileName string

The batch's name; its extension tells its type.

password string

The password of an encrypted PDF.

cancellationToken CancellationToken

Cancels the run between pages and documents.

Returns

Task<BarcodeSplittingResult>
Share