use of com.itextpdf.layout.border.SolidBorder in project betca-tpv-spring by miw-upm.
the class PdfTicketBuilder method tableColumnsSizes.
public PdfTicketBuilder tableColumnsSizes(float... widths) {
this.setTable(new Table(widths, true));
this.getTable().setBorder(new SolidBorder(Color.WHITE, 2));
this.getTable().setVerticalAlignment(VerticalAlignment.MIDDLE);
this.getTable().setHorizontalAlignment(HorizontalAlignment.CENTER);
this.getTable().setTextAlignment(TextAlignment.RIGHT);
return this;
}
Aggregations