pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1742193 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXRefStream.java
Date Tue, 03 May 2016 20:14:59 GMT
Author: tilman
Date: Tue May  3 20:14:59 2016
New Revision: 1742193

URL: http://svn.apache.org/viewvc?rev=1742193&view=rev
Log:
PDFBOX-3336: partial revert of 1734615, keep "highest object number+1" size that is set by
setSize() call in COSWriter

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXRefStream.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXRefStream.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXRefStream.java?rev=1742193&r1=1742192&r2=1742193&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXRefStream.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXRefStream.java
Tue May  3 20:14:59 2016
@@ -77,8 +77,7 @@ public class PDFXRefStream implements PD
         {
             throw new IllegalArgumentException("size is not set in xrefstream");
         }
-        // add one for object number 0
-        stream.setLong(COSName.SIZE, streamData.size() + 1);
+        stream.setLong(COSName.SIZE, size);
     
         List<Long> indexEntry = getIndexEntry();
         COSArray indexAsArray = new COSArray();



Mime
View raw message