MSG to PDF Converter
Batch converter for Outlook .MSG files to PDF. Processed 20,000+ financial emails with attachments.
- Role: Developer
- Timeline: March 2024
- Team: Solo Project
- Technologies: Python, Outlook, WeasyPrint, Streamlit
- Link: https://msg-to-pdf-converter-cams.streamlit.app/
Problem
Compliance requires archiving emails as PDFs for audit trails. Outlook .MSG files aren't easily searchable or viewable without Outlook. Converting 20,000+ emails manually was impossible.
Solution
Built a batch conversion tool that extracts MSG file contents (headers, body, attachments), renders them as formatted HTML, and converts to searchable PDFs. Handles complex scenarios like embedded images and nested attachments.
Impact
- Processed 20,000+ emails
- Preserved all formatting and attachments
- 95% faster than manual conversion
- Searchable PDF output
Key features
- Batch .MSG file processing
- HTML body rendering
- Attachment extraction and embedding
- Email header preservation
- Inline image handling
- Progress tracking for large batches
- Error handling and logging
- Zip download for batch results
Tech stack
- Frontend: Streamlit
- Backend: Python, extract-msg, WeasyPrint
- Processing: BeautifulSoup, Pillow
- Deployment: Streamlit Cloud
What K Laxman learned
- Parsing Microsoft MSG file format
- Rendering HTML to PDF with WeasyPrint
- Handling various email encodings
- Building robust batch processing pipelines
Explore more
- Home — overview, skills and a built-in AI assistant
- Experience — roles at Think360 AI (CAMS), CAMS Mutual Funds and IIT Delhi
- Projects — GenAI, LLM, RAG and full-stack builds
- Education — IIT Delhi, M.Tech & B.Tech Computer Science
- GitHub Activity — open-source contributions
- Contact / Hire me