diff --git a/CHANGELOG.md b/CHANGELOG.md index 72616504..740f74ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,29 @@ All notable changes to this project will be documented in this file. Currently g The format is based on [Keep a Changelog](http://keepachangelog.com/). +## [0.5.8] — 2018-03-06 +### Fixed +- Fix issue #53, in which non-decimalize-able (non_)stroking_color properties were raising errors. + +## [0.5.7] — 2018-01-20 +### Added +- `.travis.yml`, but failing on `.to_image()` + +### Changed +- Move from defunct `pycrypto` to `pycryptodome` +- Update `pdfminer.six` to `20170720` + +## [0.5.6] — 2017-11-21 +### Fixed +- Fix issue #41, in which PDF-object-referenced cropboxes/mediaboxes weren't being fully resolved. + +## [0.5.5] — 2017-05-10 +### Added +- Access to `__version__` from main namespace + +### Fixed +- Fix issue #33, by checking `decode_text`'s argument type + ## [0.5.4] — 2017-04-27 ### Fixed - Pin `pdfminer.six` to version `20151013` (for now), fixing incompatibility diff --git a/pdfplumber/_version.py b/pdfplumber/_version.py index 6572b3f1..38cd16b1 100644 --- a/pdfplumber/_version.py +++ b/pdfplumber/_version.py @@ -1,2 +1,2 @@ -version_info = (0, 5, 7) +version_info = (0, 5, 8) __version__ = '.'.join(map(str, version_info)) diff --git a/pdfplumber/page.py b/pdfplumber/page.py index 4ba2bdfb..90c72cd5 100644 --- a/pdfplumber/page.py +++ b/pdfplumber/page.py @@ -94,6 +94,7 @@ def point2coord(pt): NON_DECIMALIZE = [ "fontname", "name", "upright", + "stroking_color", "non_stroking_color", ] def process_object(obj): diff --git a/tests/pdfs/issue-53-example.pdf b/tests/pdfs/issue-53-example.pdf new file mode 100644 index 00000000..dcd5cd3d Binary files /dev/null and b/tests/pdfs/issue-53-example.pdf differ diff --git a/tests/test-issues.py b/tests/test-issues.py index d94faa47..cf31bfcd 100644 --- a/tests/test-issues.py +++ b/tests/test-issues.py @@ -91,3 +91,9 @@ def test_issue_33(self): ) 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) +