I have a PDF file that acts as my template. I know how to use the x, y cordinate to put an image into that PDF file. My problem is that my PDF file has about five pages and I want to put this image in the second and forth page.
Well, only sort of. There are several writer objects in iText that allow you to import existing PDF content and generate new output content. I think that what the OP is wanting to do would be possible in iText, but I can't say from direct experience there.
It realy depends on what he is trying to do. He can always insert image/new data into existing documnet and they can be writen on new layer over existing content or he can put it below like a watermark. So michael you need to be more specific with this question...
while (startPageLoop < NumberOfPages) {
startPageLoop++;
over = stamp.getOverContent(startPageLoop);
img.setAbsolutePosition(x, y);
over.addImage(img);
}
.
.
.
.
.end function
.
Thanks for your help anyway
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.