pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1821272 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java
Date Tue, 16 Jan 2018 17:11:24 GMT
Author: tilman
Date: Tue Jan 16 17:11:23 2018
New Revision: 1821272

URL: http://svn.apache.org/viewvc?rev=1821272&view=rev
Log:
PDFBOX-2852: improve message

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java?rev=1821272&r1=1821271&r2=1821272&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java Tue Jan
16 17:11:23 2018
@@ -295,7 +295,7 @@ public abstract class BaseParser
 
         if (value == null)
         {
-            LOG.warn("Bad Dictionary Declaration " + seqSource);
+            LOG.warn("Bad dictionary declaration at offset " + seqSource.getPosition());
         }
         else
         {
@@ -398,7 +398,7 @@ public abstract class BaseParser
         else if (nextChar != '(')
         {
             throw new IOException( "parseCOSString string should start with '(' or '<'
and not '" +
-                    nextChar + "' " + seqSource);
+                    nextChar + "' at offset " + seqSource.getPosition());
         }
         
         ByteArrayOutputStream out = new ByteArrayOutputStream();



Mime
View raw message