How to convert an email to PDF file

Currently GemBox.Email does not have a support for PDF format. However, our other component, GemBox.Document, supports PDF as both input and output file format (see Supported File Formats help page).

So, by using both GemBox.Email and GemBox.Document, we can accomplish the conversion of email messages to PDF files. With GemBox.Email, we can read the MSG, EML, and MHTML files and retrieve their content (subject, body, etc.), while with GemBox.Document we can create a PDF file from that retrieved email content.

The following example demonstrates how to read a Sample.eml email message, retrieve the message's information and generate a new PDF file from it.