Method ConvertToFile
- Namespace
- LMKit.Document.Conversion
- Assembly
- LM-Kit.NET.dll
ConvertToFile(byte[], string, bool, CancellationToken)
Converts an EML or Outlook MSG file (as a byte array) into a PDF file.
public static void ConvertToFile(byte[] emlData, string outputPath, bool stripQuotes = false, CancellationToken cancellationToken = default)
Parameters
emlDatabyte[]The EML or Outlook MSG file content as a byte array.
outputPathstringPath where the output PDF will be written.
stripQuotesboolWhen
true, quoted and reply content is removed.cancellationTokenCancellationTokenCancels the operation.
ConvertToFile(string, string, bool, CancellationToken)
Converts an EML or Outlook MSG file at the specified path into a PDF file.
public static void ConvertToFile(string inputPath, string outputPath, bool stripQuotes = false, CancellationToken cancellationToken = default)
Parameters
inputPathstringThe file system path to the EML or Outlook MSG file.
outputPathstringPath where the output PDF will be written.
stripQuotesboolWhen
true, quoted and reply content is removed.cancellationTokenCancellationTokenCancels the operation.
Examples
EmlToPdf.ConvertToFile("newsletter.eml", "newsletter.pdf");