Don't decimalize (non_)stroking_color, fixing #53

This commit is contained in:
Jeremy Singer-Vine
2018-03-06 08:44:59 -05:00
parent 04a2daf59c
commit b0f094c6f9
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -94,6 +94,7 @@ class Page(Container):
NON_DECIMALIZE = [
"fontname", "name", "upright",
"stroking_color", "non_stroking_color",
]
def process_object(obj):
Binary file not shown.
+6
View File
@@ -91,3 +91,9 @@ class Test(unittest.TestCase):
)
assert len(pdf.metadata.keys())
def test_issue_53(self):
pdf = pdfplumber.from_path(
os.path.join(HERE, "pdfs/issue-53-example.pdf")
)
assert len(pdf.objects)