stable version
This commit is contained in:
1 parent
df50637e70
commit
3f5bac98b3
8 files changed
+50
-62
No files matched your search
@@ -1,6 +1,6 @@
|
||||
from unittest import TestCase
|
||||
|
||||
from pdfmajor.document.catalog import PDFDocumentCatalog
|
||||
from pdfmajor.document.PDFDocumentCatalog import PDFDocumentCatalog
|
||||
from pdfmajor.document.PDFParsingContext import PDFParsingContext
|
||||
from pdfmajor.parser.objects.indirect import ObjectRef
|
||||
from pdfmajor.parser.objects.primitives import (
|
||||
@@ -76,3 +76,4 @@ class Catalog(TestCase):
|
||||
parser = PDFParsingContext(buffer)
|
||||
parser.get_catalog()
|
||||
self.assertEqual(len(parser.health_report), 0)
|
||||
parser.get_info()
|
||||
@@ -8,7 +8,7 @@ from pdfmajor.parser.objects.base import PDFObject
|
||||
from pdfmajor.parser.objects.collections import PDFArray, PDFDictionary
|
||||
from pdfmajor.parser.objects.comment import PDFComment
|
||||
from pdfmajor.parser.objects.indirect import IndirectObject, ObjectRef
|
||||
from pdfmajor.parser.objects.primitives import PDFHexString, PDFInteger, PDFString
|
||||
from pdfmajor.parser.objects.primitives import PDFInteger, PDFString
|
||||
from pdfmajor.parser.stream.PDFStream import PDFStream
|
||||
from pdfmajor.streambuffer import BufferStream
|
||||
|
||||
@@ -146,7 +146,7 @@ class IndirectObjects(TestCase):
|
||||
""",
|
||||
expected=[
|
||||
IndirectObject(12, 1, 18, PDFString(b"Bring", 0, 0)),
|
||||
IndirectObject(100, 0, 55, PDFHexString(b"3", 0, 0)),
|
||||
IndirectObject(100, 0, 55, PDFString(b"3", 0, 0)),
|
||||
IndirectObject(
|
||||
13,
|
||||
8,
|
||||
|
||||
Reference in new issue
Block a user