Skip to content

Commit

Permalink
Update pdfminer.six/pillow reqs & bump to v0.5.15
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvine committed Jan 6, 2020
1 parent 8c8e424 commit 01f7a7e
Show file tree
Hide file tree
Showing 9 changed files with 169 additions and 144 deletions.
12 changes: 9 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,31 @@ 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.15] — 2020-01-05
### Changed
- Upgrade `pdfminer.six` requirement to `==20200104`
- Upgrade `pillow` requirement `>=7.0.0`
- Remove Python 2.7 and 3.4 from `tox` tests

## [0.5.14] — 2019-10-06
### Fixed
- Fix sorting bug in `page.extract_table()`
- Fix support for password-protected PDFs (PR #138)

## [0.5.13] — 2019-08-29
## Fixed
### Fixed
- Fixed PDF object resolution for rotation (PR #136)

## [0.5.12] — 2019-04-14
## Added
### Added
- `cdecimal` support for Python 2
- Support for password-protected PDFs

## [0.5.11] — 2018-11-13
### Added
- Caching for `.decimalize()` method

## Changed
### Changed
- Upgrade to `pdfminer.six==20181108`
- Make whitespace checking more robust (PR #88)

Expand Down
6 changes: 3 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ name = "pypi"
chardet = "*"
pycryptodome = "*"
unicodecsv = ">=0.14.1"
"pdfminer.six" = "==20181108"
Pillow = ">=3.0.0"
"pdfminer.six" = "==20200104"
Pillow = ">=7.0.0"
Wand = "*"
tox = "*"

[dev-packages]
tox = "*"
nose = "*"
pandas = ">=0.22"
280 changes: 146 additions & 134 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pdfplumber/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version_info = (0, 5, 14)
version_info = (0, 5, 15)
__version__ = '.'.join(map(str, version_info))
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"chardet",
"pycryptodome",
"unicodecsv>=0.14.1",
"pdfminer.six==20181108",
"pillow>=3.0.0",
"pdfminer.six==20200104",
"pillow>=7.0.0",
"wand"
]

Expand Down
Binary file added tests/pdfs/issue-140-example.pdf
Binary file not shown.
Binary file added tests/pdfs/pr-138-example.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions tests/test-basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,10 @@ def test_password(self):
pdf = pdfplumber.open(path, password = "test")
assert(len(pdf.chars) > 0)
pdf.close()

def test_colors(self):
path = os.path.join(HERE, "pdfs/nics-background-checks-2015-11.pdf")
pdf = pdfplumber.open(path)
rect = pdf.pages[0].rects[0]
assert rect['non_stroking_color'] == [0.8, 1, 1]
pdf.close()
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27,py31,py34,py35,py36
envlist = py35,py36,py37,py38
toxworkdir={env:TOX_WORK_DIR:.tox}

[testenv]
Expand Down

0 comments on commit 01f7a7e

Please sign in to comment.