I created a header and footer for my PDF document using PdfPTables. I have specified the headers and footers in my PdfPageEventHelper's onStartPage and onEndPage event's respectively.
The issue I am facing is while adding a paragraph to my document.
When I create a new Paragraph as follows:
Paragraph content = new Paragraph("This is a test text");
try{
pdfDocument.add(content);
} catch (DocumentException e){
e.printStackTrace();
}
The content overlaps with the header. What I need is to set the pargraph between the header and the footer. Can someone tell me what do I need to do in order to put the pargraph between the header and footer, instead of on them.
Thanks
See Question&Answers more detail:os