aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/knowcenter/wag/exactparser/parsing/PDFUtils.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/at/knowcenter/wag/exactparser/parsing/PDFUtils.java b/src/main/java/at/knowcenter/wag/exactparser/parsing/PDFUtils.java
index 88476be..f126365 100644
--- a/src/main/java/at/knowcenter/wag/exactparser/parsing/PDFUtils.java
+++ b/src/main/java/at/knowcenter/wag/exactparser/parsing/PDFUtils.java
@@ -21,6 +21,8 @@ import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
+import org.apache.log4j.Logger;
+
import at.knowcenter.wag.exactparser.ByteArrayUtils;
import at.knowcenter.wag.exactparser.parsing.results.ArrayParseResult;
import at.knowcenter.wag.exactparser.parsing.results.BooleanParseResult;
@@ -62,6 +64,7 @@ import at.knowcenter.wag.exactparser.parsing.results.XRefSubSectionParseResult;
*/
public abstract class PDFUtils
{
+ private static Logger log = Logger.getLogger(PDFUtils.class);
public static boolean isWhitespace(final byte data)
{
@@ -1007,7 +1010,7 @@ public abstract class PDFUtils
pr = parseName(pdf, index);
break;
default:
- throw new RuntimeException("Unknown first_byte when parsing an unknown object at index=" + index + ".");
+ throw new RuntimeException("Unknown first_byte " + first_byte + "' when parsing an unknown object at index=" + index + ".");
// assert false : "nyi or invalid char";
}
assert pr != null;