Date:     2010-08-10 09:47:07 +0000 (Tue, 10 Aug 2010)

Log Message:
-----------
PdfWriter: bugfix posted to the mailing list by Gylfi Ingvason, solving 
a problem with indirect references when importing pages.

Modified Paths:
--------------
     trunk/src/core/com/itextpdf/text/pdf/PdfWriter.java

Modified: trunk/src/core/com/itextpdf/text/pdf/PdfWriter.java
===================================================================
--- trunk/src/core/com/itextpdf/text/pdf/PdfWriter.java 2010-08-10 
08:12:15 UTC (rev 4571)
+++ trunk/src/core/com/itextpdf/text/pdf/PdfWriter.java 2010-08-10 
09:47:07 UTC (rev 4572)
@@ -2298,7 +2298,10 @@
      protected PdfReaderInstance currentPdfReaderInstance;

      protected int getNewObjectNumber(PdfReader reader, int number, int 
generation) {
-        return currentPdfReaderInstance.getNewObjectNumber(number, 
generation);
+        if (currentPdfReaderInstance == null) {
+               currentPdfReaderInstance = getPdfReaderInstance(reader);
+        }
+       return currentPdfReaderInstance.getNewObjectNumber(number, 
generation);
      }
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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