public class PDFMultiPageTableWithRichText extends PDFMultiPageTable
PDFMultiPageTable.CellText
columnwidthinmm
Constructor and Description |
---|
PDFMultiPageTableWithRichText(float[] columnrelativewidth)
create a table with no left or right margin
|
PDFMultiPageTableWithRichText(float leftmargin,
float rightmargin,
float[] columnrelativewidth)
create a table with potentially rich text content
|
PDFMultiPageTableWithRichText(float leftmargin,
float rightmargin,
int columnnumber)
create a table with potentially rich text content with columns of similar widths
|
PDFMultiPageTableWithRichText(int columnnumber) |
Modifier and Type | Method and Description |
---|---|
protected float |
getCellHeight(float columnwidth,
int lineindex,
int columnindex)
calculates the height of the cell.
|
protected void |
printOneCell(PDFPage currentpage,
int rowindex,
int columnindex,
float mmfromtopforsection,
float currentleft,
float currentcolumnwidth)
This method prints the content of one row of a table.
|
void |
setColumnRichText(int columnindex) |
addBlankLine, addBlankLine, addOneLineContent, breakableSection, dropContentSample, getCellContent, getColumnNumber, getSectionHeight, initialize, print, printPartial, setCellContent, setCellContent, setHeader, setHeaders, setParentDocument
public PDFMultiPageTableWithRichText(float leftmargin, float rightmargin, float[] columnrelativewidth)
leftmargin
- margin left of the tablerightmargin
- margin right of the tablecolumnrelativewidth
- list of columns relative widths.public PDFMultiPageTableWithRichText(float leftmargin, float rightmargin, int columnnumber)
leftmargin
- margin left of the tablerightmargin
- margin right of the tablecolumnnumber
- public PDFMultiPageTableWithRichText(float[] columnrelativewidth)
columnrelativewidth
- relative widths of columnspublic PDFMultiPageTableWithRichText(int columnnumber)
protected float getCellHeight(float columnwidth, int lineindex, int columnindex) throws java.io.IOException
PDFMultiPageTable
getCellHeight
in class PDFMultiPageTable
columnwidth
- width of the table columnlineindex
- line index starting with 0columnindex
- column index starting with 0java.io.IOException
protected void printOneCell(PDFPage currentpage, int rowindex, int columnindex, float mmfromtopforsection, float currentleft, float currentcolumnwidth) throws java.io.IOException
PDFMultiPageTable
printOneCell
in class PDFMultiPageTable
currentpage
- page to print inrowindex
- index of the row (starting with 0)columnindex
- index of the column (starting with 0)mmfromtopforsection
- vertical position for printing as per pageband
mechanismcurrentleft
- left of the cellcurrentcolumnwidth
- with of the celljava.io.IOException
- if any exception is raised regarding printing of the
contentpublic void setColumnRichText(int columnindex)