Search in sources :

Example 1 with SolidBorder

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;
}
Also used : Table(com.itextpdf.layout.element.Table) SolidBorder(com.itextpdf.layout.border.SolidBorder)

Aggregations

SolidBorder (com.itextpdf.layout.border.SolidBorder)1 Table (com.itextpdf.layout.element.Table)1