cellParam.add(paramNameText);
tableMainParam.addCell(cellParam);
cellParam = new Cell();//参数值
Paragraph paramValueText = new Paragraph(param.getParameva lue(), contextFont);
cellParam.add(paramValueText);
tableMainParam.addCell(cellParam);
}
document.add(tableMainParam);
/**
* 添加设备配置 1、
*/
Paragraph deviceTitleText = new Paragraph("二. 设备配置: ", contextTitle1Font);
document.add(deviceTitleText);
/**
* 添加设备配置 2、
*/
Table tableDevice = new Table(7,devices.size());
float[] widthDevices = { 0.04f, 0.2f,0.2f,0.08f,0.08f, 0.2f,0.2f};
tableDevice.setWidths(widthDevices);
tableDevice.setBorderWidth(1);
tableDevice.setBorder(0);
tableDevice.setBorderColor(Color.BLACK);
tableDevice.setPadding(0);
tableDevice.setSpacing(0);
tableDevice.setWidth(100f);
/**
* 设置table header
*/
Cell cellDevice0 = new Cell();
Paragraph xuhao = new Paragraph("序号", contextFont);
xuhao.setAlignment(Paragraph.ALIGN_CENTER);
tableDevice.addCell(cellDevice0);
cellDevice0 = new Cell();
xuhao = new Paragraph("设备名称", contextFont);
xuhao.setAlignment(Paragraph.ALIGN_CENTER);
cellDevice0.add(xuhao);
tableDevice.addCell(cellDevice0);
cellDevice0 = new Cell();
xuhao = new Paragraph("规格", contextFont);
xuhao.setAlignment(Paragraph.ALIGN_CENTER);
cellDevice0.add(xuhao);
tableDevice.addCell(cellDevice0);
cellDevice0 = new Cell();
xuhao = new Paragraph("数量", contextFont);
xuhao.setAlignment(Paragraph.ALIGN_CENTER);
cellDevice0.add(xuhao);
tableDevice.addCell(cellDevice0);
cellDevice0 = new Cell();
xuhao = new Paragraph("厂牌", contextFont);
xuhao.setAlignment(Paragraph.ALIGN_CENTER);
cellDevice0.add(xuhao);
tableDevice.addCell(cellDevice0);
cellDevice0 = new Cell();
xuhao = new Paragraph("功能", contextFont);
xuhao.setAlignment(Paragraph.ALIGN_CENTER);
cellDevice0.add(xuhao);
tableDevice.addCell(cellDevice0);
cellDevice0 = new Cell();
xuhao = new Paragraph("备注", contextFont);
xuhao.setAlignment(Paragraph.ALIGN_CENTER);
cellDevice0.add(