working xref db
This commit is contained in:
1 parent
cfc2dfca47
commit
e2a92517cd
12 files changed
+517
-227
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user