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
emlDatabyte[]The EML file content as a byte array.
stripQuotesboolWhen
true, quoted and reply content is removed.cancellationTokenCancellationTokenCancels the operation.
Returns
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
inputPathstringThe file system path to the EML file.
stripQuotesboolWhen
true, quoted and reply content is removed.cancellationTokenCancellationTokenCancels the operation.