mkl, I believe you are right with this one...
The same image object is referenced from page 1 and page 2. Your code
replaces the reference on page one and kills the object. On page two your
code does nothing to the image reference as (due to your killing the image
object before) the reference goes to null. The PDF viewer later, when trying
to display page two, finds this image reference pointing nowhere and
complains.


If I wrap the killindirect in 'if i = 1 then killindirect', only doing it on
page 1, then there is no error in my pdf.  But it's not replacing my image
on page 2 also.



--
View this message in context: 
http://itext.2136553.n4.nabble.com/Replace-images-in-pdf-tp4660966p4660968.html
Sent from the iText mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to