pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1670976 - in /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox: pdfparser/PDFXrefStreamParser.java pdfwriter/ContentStreamWriter.java
Date Thu, 02 Apr 2015 21:26:21 GMT
Author: tilman
Date: Thu Apr  2 21:26:21 2015
New Revision: 1670976

URL: http://svn.apache.org/r1670976
Log:
PDFBOX-2576: revert previous commit, didn't want to do this in the branch

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXrefStreamParser.java
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/ContentStreamWriter.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXrefStreamParser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXrefStreamParser.java?rev=1670976&r1=1670975&r2=1670976&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXrefStreamParser.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFXrefStreamParser.java
Thu Apr  2 21:26:21 2015
@@ -38,8 +38,8 @@ import org.apache.pdfbox.persistence.uti
  */
 public class PDFXrefStreamParser extends BaseParser
 {
-    private final COSStream stream;
-    private final XrefTrailerResolver xrefTrailerResolver;
+    private COSStream stream;
+    private XrefTrailerResolver xrefTrailerResolver;
 
     /**
      * Constructor.
@@ -96,7 +96,7 @@ public class PDFXrefStreamParser extends
                 int size = ((COSInteger)indexIter.next()).intValue();
                 for(int i = 0; i < size; i++)
                 {
-                    objNums.add(objID + i);
+                    objNums.add(new Integer(objID + i));
                 }
             }
             Iterator<Integer> objIter = objNums.iterator();
@@ -145,7 +145,7 @@ public class PDFXrefStreamParser extends
                         {
                             genNum += (currLine[i + w0 + w1] & 0x00ff) << ((w2
- i - 1) * 8);
                         }
-                        COSObjectKey objKey = new COSObjectKey(objID, genNum);
+                        COSObjectKey objKey = new COSObjectKey(objID.intValue(), genNum);
                         xrefTrailerResolver.setXRef(objKey, offset);
                         break;
                     case 2:
@@ -168,7 +168,7 @@ public class PDFXrefStreamParser extends
                         {
                             objstmObjNr += (currLine[i + w0] & 0x00ff) << ((w1
- i - 1) * 8);
                         }    
-                        objKey = new COSObjectKey(objID, 0);
+                        objKey = new COSObjectKey( objID.intValue(), 0 );
                         xrefTrailerResolver.setXRef( objKey, -objstmObjNr );
                         break;
                     default:

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/ContentStreamWriter.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/ContentStreamWriter.java?rev=1670976&r1=1670975&r2=1670976&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/ContentStreamWriter.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/ContentStreamWriter.java
Thu Apr  2 21:26:21 2015
@@ -19,6 +19,7 @@ package org.apache.pdfbox.pdfwriter;
 import java.io.IOException;
 import java.io.OutputStream;
 
+import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
 
@@ -42,7 +43,7 @@ import org.apache.pdfbox.util.PDFOperato
  */
 public class ContentStreamWriter
 {
-    private final OutputStream output;
+    private OutputStream output;
     /**
      * space character.
      */



Mime
View raw message