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 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
> accept PdfPTable...and I also have to do Page # of # as well. I need to
> do this in java code not in JSP though. I probably have older version of
> iText as I don't have Phrase.addSpecial method in the library we are using
> either.
>
> I appreciate any help anyone can provide.
>
> Thanks.
>
> -- davidc2 wrote :
>
> 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 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 footer on my page
>>> is using:
>>> HeaderFooter header = new HeaderFooter(new Phrase("Header Header
>>> Header"), false);
>>>
>>> HeaderFooter footer = new HeaderFooter(new Phrase("This is page "),
>>> true);
>>>
>>> document.setHeader(header);
>>> document.setFooter(footer);
>>>
>>> Before document.open...
>>>
>>> How can I construct HeaderFooter with a table? Or what other alternative
>>> do I have?
>>>
>>> Thanks.
>>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Header-Footer-with-iText-on-JSP-tp15768325p15806785.html
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> 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/
>
> --
> This message was sent on behalf of [EMAIL PROTECTED] at
> openSubscriber.com
> http://www.opensubscriber.com/message/[email protected]/8726137.html
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> 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/
>
>
--
View this message in context:
http://www.nabble.com/Header-Footer-with-iText-on-JSP-tp15768325p16025213.html
Sent from the iText - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/