private class EventHandler extends PdfPageEventHelper
{
public void onStartPage(PdfWriter writer, Document document)
{
if (sensitivity != null)
{
Chunk ch = new Chunk("\n\n " + sensitivity.toUpperCase(),
new Font(Font.TIMES_ROMAN, 10, Font.BOLDITALIC));
Paragraph para = new Paragraph(ch);
para.setAlignment(Paragraph.ALIGN_CENTER);
try
{
document.add(para);
} catch (DocumentException e)
{
e.printStackTrace();
}
}
}
}
I just add it to the writer in the usual way. The document is set up via doc = new Document(PageSize.LETTER.rotate());
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
