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.
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
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);
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);
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
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
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