diff --git a/poppler/Lexer.cc b/poppler/Lexer.cc index 8d8a71c..dab069f 100644 --- a/poppler/Lexer.cc +++ b/poppler/Lexer.cc @@ -15,6 +15,7 @@ // // Copyright (C) 2006-2008 Albert Astals Cid // Copyright (C) 2006 Krzysztof Kowalczyk +// Copyright (C) 2009 Thomas Freitag // // To see a description of the changes please see the Changelog file that // came with your tarball or type make ChangeLog if you are building from git @@ -130,11 +131,17 @@ int Lexer::getChar(GBool comesFromLook) { } } } +#ifdef SHOW_PDFCMDS + if (c == EOF) + printf("<>\n\n"); + else + printf("%c",c); +#endif return c; } int Lexer::lookChar() { - + if (LOOK_VALUE_NOT_CACHED != lookCharLastValueCached) { return lookCharLastValueCached; } @@ -330,7 +337,7 @@ Object *Lexer::getObj(Object *obj, int objNum) { s->append(tokBuf, tokBufSize); p = tokBuf; n = 0; - + // we are growing see if the document is not malformed and we are growing too much if (objNum > 0 && xref != NULL) {