Re: [iText-questions] Header Footer with iText on JSP

2008-03-13 Thread davidc2
If you need to do it through Java, one option you have is to do it like they show here: http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.php For Java you can find plenty of details on the web, jsp is a little trickier. dshah wrote: I have been struggling with this issue.

Re: [iText-questions] Header Footer with iText on JSP

2008-03-11 Thread dshah
I have been struggling with this issue. I have a huge header that I need repeated for every page in which a PdfPTable can spill over into another page. I have build a header table so that I can format it the way I need it which includes a GIF image. How do I use HeaderFooter and setHeader to

Re: [iText-questions] Header Footer with iText on JSP

2008-03-04 Thread davidc2
It's too different for a jsp. I was looking into watermarks, and the code on a jsp page could be very different from a java class file. This works: HeaderFooter header = new HeaderFooter(new Phrase(Header Header Header, false); header.setBorder(0); header.setAlignment(Paragraph.ALIGN_CENTER);

Re: [iText-questions] Header Footer with iText on JSP

2008-03-04 Thread davidc2
Ok I managed to do this with the following code: //Header Phrase phrase = new Phrase (-16); phrase.add(table); HeaderFooter header = new HeaderFooter(phrase, false); header.setBorder(0); header.setAlignment(Paragraph.ALIGN_CENTER);

Re: [iText-questions] Header Footer with iText on JSP

2008-03-03 Thread davidc2
I saw that, and it's the same code that's on iText by example page but how do I change it so it works on a jsp page? mister bean wrote: See the book, starting at p. 432. There's an example of exactly what you're looking to do. --mr.bean davidc2 wrote: Hey, I'm trying to use

[iText-questions] Header Footer with iText on JSP

2008-03-01 Thread davidc2
Hey, I'm trying to use a PdfPTable table as a header, but I'm not able to... I'm using PdfPTable table = new PdfPTable(3); on which I'm adding a bunch of cells, and it works, as long as I'm adding it to the Document (document.add(table);) But the only way I'm been able to have a header and a

Re: [iText-questions] Header Footer with iText on JSP

2008-03-01 Thread mister bean
See the book, starting at p. 432. There's an example of exactly what you're looking to do. --mr.bean davidc2 wrote: Hey, I'm trying to use a PdfPTable table as a header, but I'm not able to... I'm using PdfPTable table = new PdfPTable(3); on which I'm adding a bunch of cells, and