0
我使用pdfbox的表格以pdf格式表格。它运行良好。只有一件事,我需要改变标题颜色和单元格样式。使用pdfbox更改表格标题颜色使用boxable
我正在使用下面的代码。请建议
List<List> data = new ArrayList();
data.add(new ArrayList<>(Arrays.asList("Column One", "Column Two", "Column Three", "Column Four", "Column Five")));
for (int i = 1; i <= 100; i++)
{
data.add(new ArrayList<>(Arrays.asList("Row " + i + " Col One", "Row " + i + " Col Two", "Row " + i + " Col Three", "Row " + i + " Col Four", "Row " + i + " Col Five")));
BaseTable dataTable = new BaseTable(yStart, yStartNewPage, bottomMargin, tableWidth, margin, doc, page, true, true);
DataTable t = new DataTable(dataTable, page);
t.addListToTable(data, DataTable.HASHEADER);
dataTable.draw();
}
嗨蒂尔曼,你有什么想法吗? – user1213199
不,我只是添加并创建了标签,因为有时使用此库。我只是一个PDFBox提交者。也许你的答案在这里? http://github.com/dhorions/boxable/wiki#various-table-layout-styles –
我找不到这种方法getLayouters – user1213199