表头某列内容相对比较长
示例代码
package test.create.c04;
import iofd.layout.OfdDocument;
import iofd.layout.block.Paragraph;
import iofd.layout.block.Table;
import java.util.ArrayList;
import java.util.List;
import test.create.TestDocUtil;
public class C0403LongTitleTable {
public static void main(String[] args) throws Throwable {
C0403LongTitleTable o = new C0403LongTitleTable();
o.done();
}
private void done() throws Throwable {
String clzName = this.getClass().getSimpleName();
System.out.println(clzName + " begin");
OfdDocument doc = new OfdDocument();
String s = "这是一个插入表格的示例,这个表格有一列的表头内容相对比较长。";
Paragraph p = new Paragraph();
p.add(s);
doc.add(p);
List head = new ArrayList<>();
head.add("标题一");
head.add("标题二");
head.add("标题三");
head.add("标题四[这个标题的内容很长,看看会表格的布局怎么变化]");
head.add("标题五");
List> data = new ArrayList<>();
for (int i = 0; i < 1; i++) {
List