EML to PDF Converter

I just finished a new project, an EML to PDF Converting tool which i released for free under the Apache V2 License to github. This tool allows you to convert your E-Mails in the EML format to PDF’s, which is necessary for archivability. Since E-Mails reference external resources such as images they tend to be an impermanent medium. To deal with this they can be converted to a format which is permanent such as PDF.

You can download it for free or check out the source code at github!


The EML to PDF Converter tool also features an Commandline Interface through which you can use it on a server to automatically archive your incoming email:

Usage: EMLtoPDFConverter [options] 
    -d, --debug
       Debug mode
       Default: false
    -dc, --disable-crashreports
       Do not send crash reports to the developer.
       Default: false
    -e, --error
       Display only Error messages.
       Default: false
    -a, --extract-attachments
       Extract Attachments.
       Default: false
    -ad, --extract-attachments-directory
       Extract Attachments to this Directory, if this option is not present the
       directory is besides the pdf as "-attachments".
    -?, --help
       Print this help.
       Default: false
    -hh, --hide-headers
       Do not add email headers (subject, from, etc.) at the beginning of the
       PDF document.
       Default: false
    -o, --output-filepath
       Filepath of the produced PDF document. If this option is ommited the PDF
       will be placed alongside the EML File.
    -p, --proxy
       Proxy (e.g. ""). If "auto" is supplied the default
       system proxy will be used.
    -q, --quiet
       Do not display any messages at all.
       Default: false
    -gui, --show-graphical-user-interface
       Show graphical user interface (other parameters are ignored when using
       this switch).
       Default: false
    -v, --version
       Print the version number.
       Default: false

The tool has also support for the extraction of attachments, proxy’s and much more.

7 thoughts on “EML to PDF Converter

  1. Your software is a total lifesaver! I struggled printing an invoice from gmail to pdf which kept failing miserably. The print to pdf feature from Firefox repeats certain parts of the document with each page so I couldn’t use that.

    I tried all kinds of things, even taking a screenshot and converting it to pdf with ImageMagick. The picture had to be zoomed out so the resulting pdf became unreadable in the process (due to zooming out I lost detail).

    Luckily I found eml-to-pdf-converter on Github and that made short work of it. Thanks again!

  2. Would eml to pdf converter be able to convert emlx and alm files, since they are of similar nature?

  3. I wanted to use in my java project but i am getting “java.io.IOException: Cannot run program “wkhtmltopdf”: CreateProcess error=2, Impossibile trovare il file specificato”.
    Please help

  4. I tried the EML to PDF converter and it worked quite well. I was looking for something like this for archiving my email that I receive in the course of doing my personal genealogical research.

    The only issue I had is that it does not print the header in the PDF, if there is no text in the email, even if there is an attachment. (Unfortunately; some senders just put the purpose in the topic of the header.) Not having the header means that one does not know when the associated attachment was sent and by whom.

    • Hello, I could not reproduce the problem. Could you provide me with an example mail (of course without personal details), which didn’t work for you? You can find my mail address on the about page.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.