PdfPTable nest1=new PdfPTable(3);
nest1.setSpacingBefore(0);
nest1.addCell("nest1");
nest1.addCell("nest2");
nest1.addCell("nest3");
[color=green]// 关键代码[/color]
[color=red]PdfPCell tempCell=new PdfPCell(nest1);
tempCell.setPadding(0);[/color]
[color=green]//end[/color]
tempCell.setColspan(3);
table.addCell(tempCell);
希望对遇到同样问题的朋友有帮助。
nest1.setSpacingBefore(0);
nest1.addCell("nest1");
nest1.addCell("nest2");
nest1.addCell("nest3");
[color=green]// 关键代码[/color]
[color=red]PdfPCell tempCell=new PdfPCell(nest1);
tempCell.setPadding(0);[/color]
[color=green]//end[/color]
tempCell.setColspan(3);
table.addCell(tempCell);
希望对遇到同样问题的朋友有帮助。