Thanks for your reply.

Your book just arrived, so I will be using it as well.

Great work : )

Cheers,
Sheriff 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Bruno Lowagie
Sent: Friday, 1 February 2008 6:23 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] HeaderFooter via PdfStamper.Writer

Botros, Sheriff wrote:
> I am trying to write a header to a document that I am "stamping"
> form-field values to, but nothing is appearing.

OK. That's easy.
See
http://itextdocs.lowagie.com/tutorial/general/copystamp/index.php#pdfsta
mper

>       // here is where I attempt to write the header, but to no avail
>       _stamper.Writer.Header = 
>               new HeaderFooter( new Phrase( "Consumer number " + 
> this.ConsumerNumber ), false );

Why are you using the HeaderFooter class?
It has been banned from all the official documentation.
It is not intended for use in combination with PdfStamper; it is no
longer advised to use with PdfWriter.

> Do I have to use the Document?

No, you are doing it all wrong.

> How do I get the document for the same current out-stream that stamper

> is using?
> I guess one idea (that I haven't tried yet) is to close the 
> stamper/stream and reopen the document and to do the header, I hope 
> (if it works) that there is a better option!

All the above is irrelevant.
Please adapt the tutorial example instead of using HeaderFooter.
br,
Bruno

------------------------------------------------------------------------
-
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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

-------------------------------------------------------------------------
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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to