Table of Contents

Class EmlToPdf

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

Provides methods to convert EML (email) files into PDF documents.

public static class EmlToPdf
Inheritance
EmlToPdf
Inherited Members

Examples

Example: Convert an EML file to PDF with embedded attachments

using LMKit.Document.Conversion;

EmlToPdf.ConvertToFile("message.eml", "message.pdf");

Remarks

The EmlToPdf class converts email messages to PDF using the Markdown intermediate representation: the email body, headers, and metadata are first converted to Markdown via EmlMarkdownConverter, then rendered to PDF via MarkdownToPdf.

Email attachments and inline images are embedded in the output PDF as PDF file attachments, preserving their original file names and data.

Methods

Convert(byte[], bool)

Converts an EML file (as a byte array) into a PDF attachment.

Convert(string, bool)

Converts an EML file at the specified path into a PDF attachment.

ConvertToFile(byte[], string, bool)

Converts an EML file (as a byte array) into a PDF file.

ConvertToFile(string, string, bool)

Converts an EML file at the specified path into a PDF file.