Germanynickrussler/email-to-pdf-converter
Converts email files (eml, msg) to pdf
📧 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.
#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
Python tool for converting files and office documents to Markdown.
PDF Parser for AI-ready data. Automate PDF accessibility. Open-source.
Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.