List of usage examples for com.itextpdf.text.pdf PdfPTable setWidthPercentage
public void setWidthPercentage(final float columnWidth[], final Rectangle pageSize) throws DocumentException
From source file:jdbreport.model.io.pdf.itext5.PdfWriter.java
License:Apache License
private PdfPTable createPdfTable(int columnCount, float[] widths, Rectangle pageSize) throws DocumentException { PdfPTable table; table = new PdfPTable(columnCount); table.setHorizontalAlignment(PdfPTable.ALIGN_LEFT); table.setTotalWidth(widths);/*from w w w .j a v a2s .c o m*/ table.setWidthPercentage(widths, pageSize); return table; }