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#pdfstamper

>       // 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/

Reply via email to