Table of Contents

Method SplitToAttachments

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

SplitToAttachments(Attachment, CancellationToken)

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

public BarcodeSplittingResult SplitToAttachments(Attachment source, CancellationToken cancellationToken = default)

Parameters

source Attachment

The batch.

cancellationToken CancellationToken

Cancels the run between pages and documents.

Returns

BarcodeSplittingResult

Exceptions

ArgumentNullException

source is null.

SplitToAttachments(string, string, CancellationToken)

Splits a batch file into documents held in memory.

public BarcodeSplittingResult SplitToAttachments(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

BarcodeSplittingResult

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

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

public BarcodeSplittingResult SplitToAttachments(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

BarcodeSplittingResult

SplitToAttachments(Stream, string, string, CancellationToken)

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

public BarcodeSplittingResult SplitToAttachments(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

BarcodeSplittingResult
Share