working xref db

This commit is contained in:
ari committed 2020-10-23 22:17:50 -04:00
1 parent cfc2dfca47
commit e2a92517cd
12 files changed
+517 -227

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
from pathlib import Path
from unittest import TestCase
from pdfmajor.streambuffer import BufferStream
from pdfmajor.parser.xref import iter_over_xref
CURRENT_FOLDER = Path(__file__).parent
class Standard(TestCase):
def test_char_doc(self):
with (CURRENT_FOLDER / "samples" / "pdf" / "chars.pdf").open("rb") as fp:
buffer = BufferStream(fp)
for xref in iter_over_xref(buffer):
print(xref)