コード例 #1
0
  private BaseTable createEntradaIzquierdaCentro() {
    BaseTable table = new BaseTable(new EntradaReportStyle(), 4, "3cm", "7.2cm", "0.2cm", "0.6cm");

    table.setMarginTop("0.2cm");

    table.withNewRow();

    TableCell cellIzquierda = table.withNewCell(createEntradaIzquierdaCentroFoto());
    cellIzquierda.setPadding("0.2cm");
    cellIzquierda.setBackgroundColor(FONDO_BLANCO);

    TableCell cellEnmedio = table.withNewCell(createEntradaIzquierdaCentroDatos());
    cellEnmedio.setPadding("0.2cm");
    cellEnmedio.setBackgroundColor(FONDO_BLANCO);

    // Espacio a la izquierda de bloque negro
    table.withNewCell("");

    TableCell cell = table.withNewCell("");
    cell.setPaddingLeft("0.2cm");
    cell.setBackgroundColor("black");

    return table;
  }