Jeremy Singer-Vine
cbc91c67d0
Add convert.py/.to_json/.to_csv & improve testcov
...
Moves most of the logic previously in cli.py to convert.py, for usage by
other submodules. Adds Container.to_json and Container.to_csv. Makes
adjustments/fixes to other parts of the library, based on edge-cases
encountered (such as infinite recursion in anntations).
2020-08-13 08:37:46 -04:00
Jeremy Singer-Vine
3f4b4b24b3
Bring pdfplumber/table.py coverage to 100%
2020-08-06 22:19:40 -04:00
Jeremy Singer-Vine
f0c9b85f18
Fix typo in "lines_strict" strat.; wasn't working
2020-08-06 22:18:34 -04:00
Jeremy Singer-Vine
850c5d6c61
Cut TableFinder's redund. recheck of x/y-tolerance
2020-08-06 22:16:49 -04:00
Jeremy Singer-Vine
d224202bdf
Simplify words_to_edges_h & (esp) words_to_edges_v
2020-08-06 22:15:35 -04:00
Jeremy Singer-Vine
57d54ee272
Tweak .gitignore
2020-08-06 22:14:20 -04:00
Jeremy Singer-Vine
59aad6b8fb
Add coverage html to Makefile's tests target
2020-08-06 22:13:48 -04:00
Jeremy Singer-Vine
5271244d76
Update changelog
2020-08-05 23:11:03 -04:00
Jeremy Singer-Vine
8320d6479d
Change .move_to_avg to .snap_objects & mv to utils
...
Also: Simplify the function, and make it based on the attribute you want
to snap *to*, not just the axis/orientation across which to snap.
2020-08-05 22:52:36 -04:00
Jeremy Singer-Vine
f991e241ff
Small edit to appease psf/black
2020-08-01 12:32:54 -04:00
Jeremy Singer-Vine
d16aa13ca2
Fix utils.extract_words & .resize_object, + tests
...
- Fixes `.extract_words`, which had been returning incorrect results when `horizontal_ltr = False`
- Fixes `.resize_object`, which had been failing in various permutations
- Brings utils.py test coverage to 100%
2020-08-01 12:27:07 -04:00
Jeremy Singer-Vine
8e2a166c56
Add coverage for one missing pdf.page method
2020-08-01 10:21:17 -04:00
Jeremy Singer-Vine
e7bd308fea
Refactor DerivedPage classes & fully test page.py
...
Previously, classes were being defined dynamically, in a confusing
manner. This new logic should be easier to understand.
This commit also adds a few assertions that bring coverage for page.py
to 100%.
2020-08-01 09:19:27 -04:00
Jeremy Singer-Vine
5cbc2da7a7
Merge pull request #241 from jsvine/fix/annots
...
Add `.annots` and `.hyperlinks`, replacing .annos
2020-08-01 09:03:45 -04:00
Jeremy Singer-Vine
aa03961291
Add .annots and .hyperlinks, replacing .annos
...
.annos was non-functional, based on a misunderstanding of how
Annotation objects were represented in the PDF object. Also shifts
language from "annos" to "annots" to mirror pdfminer's nomenclature.
2020-07-31 18:02:04 -04:00
Jeremy Singer-Vine
7a906300a0
Add utils.resolve (non-recursive .resolve_all)
2020-07-30 22:58:17 -04:00
Jeremy Singer-Vine
c4156d6e78
Add GitHub issue templates
2020-07-30 09:31:30 -04:00
Jeremy Singer-Vine
c5e5f4b6a9
Add open(path, pages = [...]) test
2020-07-29 23:01:00 -04:00
Jeremy Singer-Vine
249754eb91
Update changelog
2020-07-29 23:00:56 -04:00
Jeremy Singer-Vine
1258e091dc
Tweak GH workflow, Makefile, setup.cfg for linting
2020-07-29 22:46:23 -04:00
Jeremy Singer-Vine
c627720097
Reformat code to be psf/black and flake8 complaint
...
Not addressed: flake8's code complexity tests
2020-07-29 22:28:47 -04:00
Jeremy Singer-Vine
94de2c9e21
Add basic flake8 config
2020-07-29 19:12:42 -04:00
Jeremy Singer-Vine
842765f78e
Shift from tox.ini to setup.cfg
2020-07-29 19:11:23 -04:00
Jeremy Singer-Vine
c2fa431d64
Add branch note to changelog and fix subhed
2020-07-27 09:58:39 -04:00
Jeremy Singer-Vine
aede6c259c
Add a few more tests
2020-07-26 15:58:06 -04:00
Jeremy Singer-Vine
f4aa428334
Add tests for file-loading
2020-07-26 15:46:17 -04:00
Jeremy Singer-Vine
525352713b
Update changelog for currently-unreleased version
2020-07-26 15:33:23 -04:00
Jeremy Singer-Vine
d8e5517af2
Fix and tweak make venv
2020-07-26 15:30:14 -04:00
Jeremy Singer-Vine
edf876a187
Remove unused imports
2020-07-26 15:29:39 -04:00
Jeremy Singer-Vine
00e789bf42
Shift to making pdfplumber.open the sole loader
...
- .from_path is now removed
- .load is marked as deprecated, to be removed in 0.6.0
2020-07-26 15:27:51 -04:00
Jeremy Singer-Vine
ad94ed8506
Fix codecov badge
2020-07-25 10:49:00 -04:00
Jeremy Singer-Vine
6946e8d97e
Add classifiers to setup.py
2020-07-25 10:41:33 -04:00
Jeremy Singer-Vine
9e42dc3890
Add badges to README.md, tweak README.md header
2020-07-25 10:39:23 -04:00
Jeremy Singer-Vine
706c849677
Add codecov.yml
2020-07-25 10:39:13 -04:00
Jeremy Singer-Vine
b148fd1b5d
Add Codecov and GitHub action
2020-07-25 10:24:09 -04:00
Jeremy Singer-Vine
59f7b50540
Add pip install -e . to make venv
2020-07-25 09:23:39 -04:00
Jeremy Singer-Vine
eafc15c216
Add MANIFEST.in
2020-07-25 09:13:39 -04:00
Jeremy Singer-Vine
70cfac41f0
Update tox.ini
2020-07-25 09:13:30 -04:00
Jeremy Singer-Vine
4c69c58f1a
Add basic Makefile for venv and tests
2020-07-25 08:46:03 -04:00
Jeremy Singer-Vine
1ac16dd369
Change testing framework from nosetests to pytest
2020-07-25 08:45:17 -04:00
Jeremy Singer-Vine
51a3e777c9
Fix and simplify requirements.txt
2020-07-25 08:45:01 -04:00
Jeremy Singer-Vine
e99a664701
Fix .extract_text/words default tolerance @ README
2020-07-19 10:45:18 -04:00
Jeremy Singer-Vine
fa6110fb32
Add long_description to setup.py via README.md
2020-07-19 10:36:28 -04:00
Jeremy Singer-Vine
48eaa51557
Move from Pipfile back to standard pip req files
2020-07-19 10:35:09 -04:00
Jeremy Singer-Vine
9eb5c4b825
Bump to v0.5.22
v0.5.22
2020-07-18 12:52:51 -04:00
Jeremy Singer-Vine
cddbff74e5
Upgrade pdfminer.six==20200517 and adjust tests
...
New pdfminer.six version includes some improvements to layout analysis,
and especially char sizes. Tests tweaked accordingly.
2020-07-18 12:50:12 -04:00
Jeremy Singer-Vine
0254da3a47
Merge branch 'idan-david/master'
2020-07-18 11:19:34 -04:00
Jeremy Singer-Vine
0731d6059d
Explicitly mention .image and .figuer objects
...
See https://github.com/jsvine/pdfplumber/issues/219
2020-06-24 22:47:45 -04:00
Idan David
334a49b74c
Add test for LTChar colors
2020-05-31 12:14:25 +03:00
Jeremy Singer-Vine
7c84090f59
Bump to v0.5.21
v0.5.21
2020-05-27 22:25:12 -04:00