Note: This project is archived and no longer maintained. A newer, improved version is available at Docx2PDF, which uses DocxJavaMapper for DOCX parsing instead of Apache POI.
A simple Java library that converts Microsoft Word documents (.docx) to PDF format using Apache POI and iText 7.
String docIn = "myDoc.docx";
String docOut = "myPdf.pdf";
Converter c = new Converter();
c.convert(docIn, docOut);| Feature | Status |
|---|---|
| Text | Supported |
| Bold / Italic | Supported |
| Text colors | Supported |
| Images | Supported |
| Tables | Supported (text only) |
| Table text formatting | Not supported |
| Headings | Not supported |
| Basic shapes | Not supported |
| Dependency | Version | Description |
|---|---|---|
| Apache POI | 4.1.2 | Reading DOCX files via XWPF |
| iText 7 | 7.1.12 | Generating PDF output |
This project has been superseded by Docx2PDF, which offers:
- No dependency on Apache POI
- Uses DocxJavaMapper for mapping DOCX structure to Java objects
- Cleaner architecture with separation between parsing and PDF generation