Convert eml to pdf using PDFnet sdk

Hello,

Is there any option to convert eml to pdf?

Thank,
Lior.

1 Like

Yes, on Windows, but exact step depends if MS Office is installed or not.

If you have MS Office installed, then The .eml format is actually a plain text version of .mhtml. So if you change the extension to .mht then MS Office will handle the conversion.

Otherwise, on Windows OS you can install our virtual printer driver. You will also need a 3rd party application that can print EML files.

This forum post explains in more detail.
https://groups.google.com/a/pdftron.com/d/msg/support/sBzGfjny0mc/63dZAFk-EQAJ

If it isn’t clear in the post above, to install the virtual printer (only needed to be done once on a machine, where the process has elevated rights), see our Convert test.
https://www.pdftron.com/pdfnet/samplecode/ConvertTest.cs.html

// optional set your own custom printer name //pdftron.PDF.Convert.Printer.SetPrinterName("My Custom Printer Name"); if (!pdftron.PDF.Convert.Printer.IsInstalled()) pdftron.PDF.Convert.Printer.Install();

2 Likes

Hello Ryan,

Where can I see the supported files that I can convert into PDF?

Thanks,
Lior.

1 Like

Yes, this post shows in detail, and gets updated accordingly.

1 Like

If you have Outlook installed, then a better way to handle EML files is to utilize the code in this repository.

1 Like

Many users facing issues with converting EML to PDF format so after researching on the web I found out the best way those help you convert EML to PDF safely and securely try EML to PDF Converter by Softaken.

I hope this answer will help you.

1 Like

Please tell me a good way to convert eml to pdf

1 Like

Does anyone know how to convert .msg to pdf?

1 Like

We have added native RTF/EML/MSG support with the latest 11.12 version of PDFNET. Please view changelog for more info: