Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Agrego las celdas finales a la tabla
- Chunk subT = new Chunk(subtotal,smallBold);
- Chunk subT1= new Chunk("SUBTOTAL");
- PdfPCell[] celdFinal = new PdfPCell[3];
- celdFinal[0] = new PdfPCell(new Phrase(subT1+" "+subT));
- for (int i = 0; i <= 0; i++) {
- celdFinal[i].setColspan(4);//Las celdas que abarcaran
- tabla.addCell(celdFinal[i]);
- }
- chapter.setNumberDepth(0); //.setNumberDepth(0); hace que no se le coloque numeracion
- chapter.add(image);
- chapter.add(subT);
- chapter.add(idVenta);
- chapter.add(tabla);
- document.add(chapter);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement