pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1669804 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java
Date Sat, 28 Mar 2015 17:20:56 GMT
Author: tilman
Date: Sat Mar 28 17:20:56 2015
New Revision: 1669804

URL: http://svn.apache.org/r1669804
Log:
PDFBOX-2733: ignore /Prev 0; improve one log message

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java?rev=1669804&r1=1669803&r2=1669804&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java Sat Mar 28
17:20:56 2015
@@ -201,7 +201,7 @@ public class COSParser extends BaseParse
         document.setStartXref(startXrefOffset);
         long prev = startXrefOffset;
         // ---- parse whole chain of xref tables/object streams using PREV reference
-        while (prev > -1)
+        while (prev > 0)
         {
             // seek to xref table
             pdfSource.seek(prev);
@@ -930,7 +930,8 @@ public class COSParser extends BaseParse
             {
                 if (isLenient)
                 {
-                   LOG.warn("The stream doesn't provide any stream length, using fallback
readUntilEnd"); 
+                   LOG.warn("The stream doesn't provide any stream length, using fallback
readUntilEnd, at offset "
+                        + pdfSource.getOffset());
                 }
                 else
                 {



Mime
View raw message