¿Cómo establecer un color de fondo de una celda de tabla usando iText?
Mientras que, por supuesto, es posible utilizarBaseColor
, por defecto, ofrece opciones muy limitadas.
Me pregunto cómo puedo agregar mi propio color personalizado al documento.
...
PdfPTable table = new PdfPTable(3);
PdfPCell cell = new PdfPCell(new Phrase("some clever text"));
cell.setBackgroundColor(BaseColor.GREEN);
table.addCell(cell);
...