pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1649011 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
Date Fri, 02 Jan 2015 12:33:33 GMT
Author: lehmi
Date: Fri Jan  2 12:33:33 2015
New Revision: 1649011

URL: http://svn.apache.org/r1649011
Log:
PDFBOX-2440: don't add Prev value when writing one new xref table

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java?rev=1649011&r1=1649010&r2=1649011&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java Fri Jan 
2 12:33:33 2015
@@ -602,8 +602,7 @@ public class COSWriter implements ICOSVi
             }
 
             COSDictionary trailer = doc.getTrailer();
-            trailer.setLong(COSName.PREV, doc.getStartXref());
-
+            trailer.removeItem(COSName.PREV);
             pdfxRefStream.addTrailerInfo(trailer);
             // the size is the highest object number+1. we add one more
             // for the xref stream object we are going to write
@@ -1029,7 +1028,6 @@ public class COSWriter implements ICOSVi
         }
         else
         {
-            trailer.setLong(COSName.PREV, doc.getStartXref());
             doWriteXRefTable();
             doWriteTrailer(doc);
         }



Mime
View raw message