My solution is to set the document top margin at three times the default,
then subtract a value when positioning the header.
(at class level)
private static float marginIncrement = 36;
(in page event)
table.writeSelectedRows(0, -1, document.leftMargin(), page.height() -
(document.topMargin() - ma
If I use the following statement and try different values for (margin), the
header will move down into the page, but the remainder of the document will
still print in the same place. Header text can be made to appear on top of
other text. A value of 24 seems optimum. I can only make the first page
]>
>Date: Tue, 1 Feb 2005 09:41:49 -
>
>You must use PdfPTable and page events. See the example
>headers_and_watermarks.java at itextpdf.sf.net.
>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of David McDi
o: [email protected]
> Subject: Re: [iText-questions] use table in header
>
> I can almost get a table to work with the following:
>
> Phrase ph = new Phrase();
> ph.add(new Chunk("MMIS Report "));
> ph.add(new Chunk("KidCare Appl
I can almost get a table to work with the following:
Phrase ph = new Phrase();
ph.add(new Chunk("MMIS Report "));
ph.add(new Chunk("KidCare Application Profile"));
ph.add(new Chunk("Household ID# "+rsA.getString("APPL_ID").trim()));
ph.add(Chunk.NEWLINE);
ph.add(new Chunk(ToolsMisc
I must add a header to the PDF and the header must be a table. I've spent
all day and cannot figure out how. I am not using PdfP objects but just
plain objects: Table and not PdfPTable.
Through trial and error I found out a command such as:
doc.setHeader(new HeaderFooter(new Phrase("xx"),false