Table of Contents

Method ConvertToBytes

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

ConvertToBytes(byte[], bool, CancellationToken)

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

public static byte[] ConvertToBytes(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

byte[]

ConvertToBytes(string, bool, CancellationToken)

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

public static byte[] ConvertToBytes(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

byte[]
Share