Hello, Newbie, using iTextSharp...
I am trying to write a header to a document that I am "stamping" form-field values to, but nothing is appearing. Here is the code (C#, semi-pseudo) ... _reader = new PdfReader( formFilePath ); _stamper = new PdfStamper( _reader, new FileStream( outPath, FileMode.Create ) ); _fields = _stamper.AcroFields; foreach( fieldName ) { _fields.SetField( fieldName, getData( fieldName )); } // 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 ); ... Do I have to use the Document? 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! Your help is appreciated. Cheers, Sheriff ------------------------------------------------------------------------- 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/