I've searched far and wide but cannot find anything in the archives.  I'm using 
iTextSharp 5.0.0 along with good ol' Adobe 9.  I have a template with extended 
features enabled that I have to read in, populate certain form fields, add an 
image to an existing page in the document, and serve it up with extended 
features still enabled.  I've narrowed my problem down to when I add the image. 
 Up to that point, I can close the PdfStamper and deliver the file with 
extended features still enabled.  But adding the image using the code below 
somehow breaks and disables the extended features...


  FileStream ourFileStream = new FileStream("newfile.pdf"), FileMode.Create);
        PdfReader ourPdfReader = new PdfReader("Template.pdf"));
        PdfStamper ourPdfStamper = new PdfStamper(ourPdfReader, ourFileStream);

        ourContent = ourPdfStamper.GetOverContent(0);
        // chartImg is iTextSharp.text.Image object
        ourContent.AddImage(chartImg);

Is there a way to overcome this?  Why can I stamp all the other form fields but 
not add the image without disabling extended features?  Is there a 
different/better way to add the image?

Thanks so much for any help you can provide!

Greg Hite
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to