pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1669829 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
Date Sat, 28 Mar 2015 19:17:12 GMT
Author: tilman
Date: Sat Mar 28 19:17:11 2015
New Revision: 1669829

URL: http://svn.apache.org/r1669829
Log:
PDFBOX-2733: ignore /Prev 0

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java?rev=1669829&r1=1669828&r2=1669829&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
Sat Mar 28 19:17:11 2015
@@ -523,7 +523,7 @@ public class NonSequentialPDFParser exte
         long prev = startXrefOffset;
         // ---- parse whole chain of xref tables/object streams using PREV
         // reference
-        while (prev > -1)
+        while (prev > 0)
         {
             // seek to xref table
             setPdfSource(prev);
@@ -569,7 +569,7 @@ public class NonSequentialPDFParser exte
                     parseXrefObjStream(prev, false); 
                 }
                 prev = trailer.getInt(COSName.PREV);
-                if (prev > -1)
+                if (prev > 0)
                 {
                     // check the xref table reference
                     fixedOffset = checkXRefOffset(prev);
@@ -584,7 +584,7 @@ public class NonSequentialPDFParser exte
             {
                 // parse xref stream
                 prev = parseXrefObjStream(prev, true);
-                if (prev > -1)
+                if (prev > 0)
                 {
                     // check the xref table reference
                     fixedOffset = checkXRefOffset(prev);



Mime
View raw message