clumsyhamster (2) [Avatar] Offline
#1
I have 2 PDFs. 1 pdf is the template and the other is the output file. Images are dynamically created. When I create the output file I need a way of inserting the images.

1. I create a PdfReader to read the template file.
2. I then create a PdfStamper to specify the new file to create
3. I create an AcroFields to put the correct information into the right form fields.

This all works. Just can't figure out how to add an image using the above.

thanks ^_^
clumsyhamster (2) [Avatar] Offline
#2
Re: Insert image into existing PDF or at time of creation?
figured it out. Here is the code I used:

stamper.GetOverContent(1).AddImage(chartImg);