- better loggin system
- adde test case for bad characters
This commit is contained in:
1 parent
ac49ad1bcf
commit
38f8ca76a6
7 files changed
+95
-58
No files matched your search
@@ -7,7 +7,9 @@ from .PDFStream import resolve1, int_value, list_value, dict_value
|
||||
from .PDFParser import PDFParser
|
||||
from .PDFDocument import PDFDocument, PDFTextExtractionNotAllowed
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
from ..utils import get_logger
|
||||
|
||||
log = get_logger(__name__)
|
||||
|
||||
# some predefined literals and keywords.
|
||||
LITERAL_PAGE = LIT('Page')
|
||||
@@ -89,7 +91,7 @@ class PDFPage(object):
|
||||
tree_type = tree.get('type')
|
||||
|
||||
if tree_type is LITERAL_PAGES and 'Kids' in tree:
|
||||
log.info('Pages: Kids=%r', tree['Kids'])
|
||||
# log.info('Pages: Kids=%r', tree['Kids'])
|
||||
for c in list_value(tree['Kids']):
|
||||
for x in search(c, tree):
|
||||
yield x
|
||||
|
||||
Reference in new issue
Block a user