Sooner or later, every programmer will encounter the time when a new Word document is generated based on Microsoft Word templates and data, and poi-tl may be the best Word template engine in Java.
The official version of V1.9.0 has made many improvements in data model and ease of use.
Feature update:
- Provide factory and a chain called way to build a data
Texts
model:Pictures
,Charts
,Tables
, ,Includes
, etc. - Support colorful (rich style) paragraphs, add paragraph plug-ins
ParagraphRenderPolicy
- New table column cycle plugin
LoopColumnTableRenderPolicy
- Redesigned the table model to meet more styles and use it
TableRenderPolicy
as the default table plug-in - Add label support for footnotes and endnotes
- Added support for combination chart and ring chart
- New built-in variables for the block pair loop, support index subscript and other functions
- BUGFIX
Usability improvement
- Remove the ELModel class and use useSpringEL() and useDefaultEL(true) instead
- Remove NumbericRenderData, use NumberingRenderData instead
- Remove MiniTableRenderData and use TableRenderData instead
- Remove MiniTableRenderPolicy and use TableRenderPolicy instead
- Remove Configure.newBuilder() and use Configure.builder() instead
Code example
word form
Tables.of(new String[][] {
new String[] { "00", "01" },
new String[] { "10", "11" }
}).border(BorderStyle.DEFAULT).create()
word chart
Charts.ofSingleSeries("ChartTitle", new String[] { "美国", "中国" })
.series("countries", new Integer[] { 9826675, 9596961 })
.create();
The latest Chinese document address: http://deepoove.com/poi-tl