Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. //Agrego las celdas finales a la tabla
  2. Chunk subT = new Chunk(subtotal,smallBold);
  3. Chunk subT1= new Chunk("SUBTOTAL");
  4. PdfPCell[] celdFinal = new PdfPCell[3];
  5.  
  6. celdFinal[0] = new PdfPCell(new Phrase(subT1+" "+subT));
  7.  
  8. for (int i = 0; i <= 0; i++) {
  9. celdFinal[i].setColspan(4);//Las celdas que abarcaran
  10. tabla.addCell(celdFinal[i]);
  11. }
  12.  
  13. chapter.setNumberDepth(0); //.setNumberDepth(0); hace que no se le coloque numeracion
  14. chapter.add(image);
  15. chapter.add(subT);
  16. chapter.add(idVenta);
  17. chapter.add(tabla);
  18. document.add(chapter);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement