ITEXT PDF / NOTES</>↗iText PDF20 Dec 2011
We can set the width of a table using the setWidthPercentage() method of the com.itextpdf.text.pdf.PdfPTable class. This method accept a float value as a parameter. This method sets the width in a percentage of the width a table will occupy in the page. The default table’s width is 80%. Let’s see an example on the […]
ITEXT PDF / NOTES</>↗iText PDF20 Dec 2011
The width of a table column defined relatively between each column. On the following example we define an array floats that stores the column widths. We define the second column twice as big as the first column and the third column is three times bigger than the first column. To set the width we call […]
ITEXT PDF / NOTES</>↗iText PDF17 Dec 2011
You can create a list in iText using the com.itextpdf.text.List. This class represent a list. The list item is created using the com.itextpdf.text.ListItem. You can create an ordered list or unordered list. To create ordered list pass the List.ORDERED as the parameter to class List. To create an unordered list pass the List.UNORDERED. Let’s see […]
ITEXT PDF / NOTES</>↗iText PDF17 Dec 2011
To create a Roman or Greek numeral list we can use special implementation list in the iText. The com.itextpdf.text.RomanList represent a Roman numeral list while the com.itextpdf.text.GreekList represent a Greek numeral list. The list item can be created using the com.itextpdf.text.ListItem class. Let’s check out an example below: package org.kodejava.itextpdf; import com.itextpdf.text.*; import com.itextpdf.text.pdf.PdfWriter; import […]
ITEXT PDF / NOTES</>↗iText PDF14 Dec 2011
The com.itextpdf.text.Anchor class in iText can be used to create an internal link or external link in a PDF document. To create an internal link we must format the anchor reference using the # + referenceName. On the other side the target anchor should be named using the same reference name excluding the # symbol. […]
ITEXT PDF / NOTES</>↗iText PDF13 Dec 2011
This brief example show you how to create chapter in the PDF document using iText. To create chapter we use the com.itextpdf.text.Chapter class. We can pass the chapter title and the chapter number as the parameter for the Chapter constructor. To create a section for the chapter we can use the com.itextpdf.text.Section class. To add […]