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
sourceAttachmentThe batch.
cancellationTokenCancellationTokenCancels the run between pages and documents.
Returns
Exceptions
- ArgumentNullException
sourceisnull.
SplitToAttachments(string, string, CancellationToken)
Splits a batch file into documents held in memory.
public BarcodeSplittingResult SplitToAttachments(string inputPath, string password = "", CancellationToken cancellationToken = default)
Parameters
inputPathstringThe batch file.
passwordstringThe password of an encrypted PDF.
cancellationTokenCancellationTokenCancels the run between pages and documents.
Returns
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
databyte[]The batch's bytes.
fileNamestringThe batch's name; its extension tells its type.
passwordstringThe password of an encrypted PDF.
cancellationTokenCancellationTokenCancels the run between pages and documents.
Returns
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
streamStreamThe batch's stream; a stream that cannot seek is copied once.
fileNamestringThe batch's name; its extension tells its type.
passwordstringThe password of an encrypted PDF.
cancellationTokenCancellationTokenCancels the run between pages and documents.