Re: [iText-questions] use table in header

2005-02-01 Thread David McDivitt
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

Re: [iText-questions] use table in header

2005-02-01 Thread David McDivitt
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

Re: [iText-questions] use table in header

2005-02-01 Thread David McDivitt
]> >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

RE: [iText-questions] use table in header

2005-02-01 Thread Paulo Soares
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

Re: [iText-questions] use table in header

2005-01-31 Thread David McDivitt
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

[iText-questions] use table in header

2005-01-31 Thread David McDivitt
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