pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tchoje...@apache.org
Subject svn commit: r1465163 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
Date Sat, 06 Apr 2013 00:47:24 GMT
Author: tchojecki
Date: Sat Apr  6 00:47:22 2013
New Revision: 1465163

URL: http://svn.apache.org/r1465163
Log:
PDFBOX-1551: fix missing trailer for modified documents with xref streams

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=1465163&r1=1465162&r2=1465163&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 Sat Apr 
6 00:47:22 2013
@@ -1139,7 +1139,7 @@ public class COSWriter implements ICOSVi
             }
             
             // the trailer section should only be used for xref tables not for xref streams
-            if (!doc.isXRefStream() || hybridPrev != -1)
+            if (!incrementalUpdate || !doc.isXRefStream() || hybridPrev != -1)
             {
                 doWriteTrailer(doc);
             }



Mime
View raw message