An open API service indexing awesome lists of open source software.

https://github.com/fivefish130/html2excel-richtext

A production-ready Java library for converting HTML to Excel rich text with full styling support (colors, fonts, hyperlinks, images). Extracted from enterprise applications with clean architecture.
https://github.com/fivefish130/html2excel-richtext

apache-poi data-export excel html-converter html-to-excel java jsoup poi rich-text spreadsheet xlsx

Last synced: 3 months ago
JSON representation

A production-ready Java library for converting HTML to Excel rich text with full styling support (colors, fonts, hyperlinks, images). Extracted from enterprise applications with clean architecture.

Awesome Lists containing this project

README

          

# 📊 HTML to Excel Rich Text Converter


English | įŽ€äŊ“中文


Features â€ĸ
Quick Start â€ĸ
Modules â€ĸ
Examples â€ĸ
Contributing

---

## 🌟 Why This Library?

Apache POI is great for creating Excel files, but converting HTML to rich text with proper styling is surprisingly difficult. This library fills that gap with:

- ✅ **Production-Ready**: Refactored from real enterprise applications
- ✅ **Feature-Complete**: Supports colors, fonts, backgrounds, hyperlinks, images, lists, tables
- ✅ **High Performance**: Font/style caching, async image downloading
- ✅ **Fault-Tolerant**: Auto-fixes malformed HTML using Jsoup
- ✅ **Well-Architected**: Clean code with SOLID principles
- ✅ **Well-Tested**: Comprehensive unit tests

## đŸŽ¯ Features

### Rich Text Styling
- **Bold/Italic/Underline**: ``, ``, ``, ``, ``
- **Colors**: `#hex`, `rgb()`, named colors (red, blue, etc.)
- **Fonts**: Font family and size support
- **CSS Parsing**: Inline `style` attribute support

### Advanced Features
- **List Support**: `