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