C# library for converting .docx to .pdf without Office.
- .NET Framework 4
- Install iTextSharp v5
- Install Open XML SDK 2.5
Below lists current support status of DOCX
| Type | Support | Remarks |
| Run | ||
| Borders | X | |
| Fonts | V | Known issues 1. Underline only supports single-line 2. Theme color is not supported |
| Shading | X | |
| Line breaks | V | Known issues 1. Column break is not supported |
| Kerning and spacing | X | |
| Preserved space | V | |
| Symbols | V | |
| Hyperlinks | V | i.e. external links |
| Bookmarks | X | i.e. internal links |
| Embedded photos | V | |
| Vector graphics | X | |
| Paragraph | ||
| Horizontal alignment | V | |
| Borders | X | |
| AutoSapceDN | V | |
| AutoSapceDE | V | |
| Punctuation overflow | V | Known issues 1. For the line with underline, punctuation overflow may not work |
| Indentation | V | |
| Shading | X | |
| Paragraph spacing | V | |
| Tabs | X | |
| Vertical alignment | X | |
| Numbering & listing | V | Known issues 1. Restart is not supported 2. Picture as numbering symbol is not supported 3. Numbering only supports Decimal, DecimalZero, LowerRoman, UpperRoman, TaiwaneseCountingThousand 4. Linked style is not supported |
| Text direction | X | |
| Table | ||
| Borders | V | Known issues 1. Border only supports signle-line |
| Border conflicts | V | |
| Caption | X | |
| Table header | X | |
| Row height | V | |
| Table indentation | V | |
| Floating table | X | |
| Cell margins | V | |
| Cell spacing | X | |
| Cell shading | V | |
| Vertical alignment | V | |
| Fixed table width | V | Known issues 1. Nested table size may be wrong |
| Autofit table width | X | |
| Conditional formatting | X | i.e. formatting for firstColumn, firstRow, lastColumn, lastRow, noHBand, noVBand |
| Text direction | X | |
| Sections | ||
| Type | X | Five types for section properties: continuous, evenPage, oddPage, nextPage, and nextColumn |
| Column | X | |
| Borders | X | |
| Header | V | Known issues 1. Page number is not supported |
| Footer | X | |
| Page margins | V | |
| Page number | X | |
| Text direction | X | |
| Others | ||
| Text frames | X | |
| Auto color | X | |
| TOC | X | |
- Office Open XML - WordprocessingML documentation
- Office Dev Center - Open XML SDK API documentation