Bhattacharyya Niladri (KSFJ 311) wrote:
> Hi Bruno,
>          I am really sorry. I am putting a header in my pdf document
> which is a PdfpTable with two cells, one with an image, another empty.
> 
> It looks fine in  the first page. But in the second page onwards there
> is no space between the header and the content of the page. It looks
> very bad.  So I want to put some spaces vertically after which the
> content should start.

You have to adapt the margins of your Document object;
for instance when doing "new Document(PageSize.A4, 36, 36, 36, 36)"
so that the stuff you're adding as a header in a page event
doesn't overlap with the stuff you're adding to the document.
In other words: replace the value 36 of the top margin in
the code snippet above based on the space needed by the header
added in your page event.
br,
Bruno

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to