commit 963ed828156fc7cd29366289638bb1b820b12210 Author: Robin Houston Date: Mon Jan 7 15:11:51 2013 +0000 Do not fail if an ObjStm ends with a number This is the cause of the problem described in http://bugs.debian.org/687669 diff --git a/java/com/lowagie/text/pdf/PRTokeniser.java b/java/com/lowagie/text/pdf/PRTokeniser.java index 6c048c0..bd0876e 100644 --- a/java/com/lowagie/text/pdf/PRTokeniser.java +++ b/java/com/lowagie/text/pdf/PRTokeniser.java @@ -288,6 +288,12 @@ public class PRTokeniser { } } } + if (level > 0) { + type = TK_NUMBER; + file.seek(ptr); + stringValue = n1; + return; + } throwError("Unexpected end of file"); }