mirror of
https://github.com/jsvine/pdfplumber.git
synced 2026-08-29 08:34:23 +08:00
Don't decimalize (non_)stroking_color, fixing #53
This commit is contained in:
@@ -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.
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user