Back to Trending
RepositoryJavaDEGermany
nickrussler

nickrussler/email-to-pdf-converter

Converts email files (eml, msg) to pdf

371stars
83forks
0issues
0views

📧 Email to PDF Converter

Turn your email files into clean, printable PDFs — with images, headers, and attachments intact.

Email to PDF Converter (formerly EML to PDF Converter) is a Java-based tool that converts email files in EML or MSG format to PDF documents. Created by nickrussler, it can be used as a library, a command-line tool, or a desktop application with a graphical user interface. The project solves the common problem of needing to archive or share emails in a standardized, printable format while preserving the original structure, inline images, and metadata.

✨ Highlights

  • Multi-format support: Converts both EML and MSG email files to PDF.
  • Flexible usage modes: Works as a library, command-line tool, or desktop GUI application.
  • HTML-based conversion pipeline: Parses and cleans the MIME structure, converts it to HTML, then uses wkhtmltopdf to render the final PDF.
  • Inline image handling: Preserves inline images in the converted PDF document.
  • Corrupt MIME header handling: Can process emails that have corrupt or malformed MIME headers.
  • Proxy support: Can route conversion through a proxy, including automatic detection of the system proxy.
  • Security-conscious: JavaScript in email HTML is not executed; script tags are rendered inert to prevent potential exploits.
  • Attachment management: Options to extract attachments or list attachment names under the body text in the PDF.

💡 Why it matters

Many email clients offer "Print to PDF" functionality, but the results often lose formatting, inline images, or attachment metadata. Email to PDF Converter takes a different approach by parsing the raw MIME structure directly, ensuring a faithful conversion that preserves the email's original appearance and structure. The use of wkhtmltopdf for the HTML-to-PDF step also produces high-quality, reliable output with configurable page sizes and DPI.

The tool is particularly useful for legal compliance, email archiving, or anyone who needs to convert large batches of email files into a standardized format. Being open source under the Apache V2 license, it offers transparency and customization options that proprietary solutions cannot match.


#EmailToPDF #EML #MSG #PDFConversion #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
Stirling-Tools/Stirling-PDF

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

98.0k
Dec 3, 2026
RepositoryC#
Sicos1977/MSGReader

C# Outlook MSG file reader without the need for Outlook

560
Nov 26, 2026
RepositoryPython
microsoft/markitdown

Python tool for converting files and office documents to Markdown.

199.6k
Dec 3, 2026
RepositoryJava
opendataloader-project/opendataloader-pdf

PDF Parser for AI-ready data. Automate PDF accessibility. Open-source.

30.4k
Nov 26, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Oct 31, 2026
RepositoryPython
opendatalab/MinerU

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

84.6k
Dec 2, 2026
RepositoryPython
datalab-to/marker

Convert PDF to markdown + JSON quickly with high accuracy

41.1k
Nov 28, 2026
RepositoryJavaScript
alam00000/bentopdf

The Privacy First PDF Toolkit

16.6k
Dec 2, 2026
RepositoryC#
wmjordan/PDFPatcher

PDF补丁丁——PDF工具箱,可以编辑书签、剪裁旋转页面、解除限制、提取或合并文档,探查文档结构,提取图片、转成图片等等

12.8k
Dec 1, 2026