v1.3.12
This commit is contained in:
1 parent
36a9371657
commit
152d3aaf55
13 files changed
+35
-12
No files matched your search
@@ -14,7 +14,7 @@ NUM_LOOPS = 10
|
||||
|
||||
def count_elms(file_path: str):
|
||||
count = 0
|
||||
for page in PDFInterpreter(file_path):
|
||||
for page in PDFInterpreter(file_path, ignore_bad_chars=True):
|
||||
for item in page:
|
||||
if isinstance(item, LTContainer):
|
||||
count += len([*item])
|
||||
|
||||
Reference in new issue
Block a user