Bonjour,
J'essais désespérément de mettre une bordure sur le bottom d'un tableau avec iText.
J'ai trouvé plusieurs exemples en cherchant sur google mais aucun ne fonctionne. Je ne comprends pas.
Voici mon tableau :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 PdfPTable tableH = new PdfPTable(3); tableH.setWidthPercentage(100); int [] widths = {35,45,20}; tableH.setWidths(widths); tableH.getDefaultCell().setBorder(PdfPCell.NO_BORDER); tableH.addCell(new Paragraph("Fabricant", fontBold)); tableH.addCell(new Paragraph("Produit", fontBold)); tableH.addCell(new Paragraph("Prix net htva", fontBold)); document.add(tableH);
Partager