Table of Contents

Method ConvertToBytesAsync

Namespace
LMKit.Document.Conversion
Assembly
LM-Kit.NET.dll

ConvertToBytesAsync(byte[], bool, CancellationToken)

Converts EML bytes into PDF and returns the result as a byte array.

public static Task<byte[]> ConvertToBytesAsync(byte[] emlData, bool stripQuotes = false, CancellationToken cancellationToken = default)

Parameters

emlData byte[]

The EML file content as a byte array.

stripQuotes bool

When true, quoted and reply content is removed.

cancellationToken CancellationToken

Cancels the operation.

Returns

Task<byte[]>

ConvertToBytesAsync(string, bool, CancellationToken)

Converts an EML file into PDF and returns the result as a byte array.

public static Task<byte[]> ConvertToBytesAsync(string inputPath, bool stripQuotes = false, CancellationToken cancellationToken = default)

Parameters

inputPath string

The file system path to the EML file.

stripQuotes bool

When true, quoted and reply content is removed.

cancellationToken CancellationToken

Cancels the operation.

Returns

Task<byte[]>
Share