Commit Graph

74 Commits

Author SHA1 Message Date
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 9e42dc3890 Add badges to README.md, tweak README.md header 2020-07-25 10:39:23 -04:00
Jeremy Singer-Vine e99a664701 Fix .extract_text/words default tolerance @ README 2020-07-19 10:45:18 -04:00
Jeremy Singer-Vine 9eb5c4b825 Bump to v0.5.22 2020-07-18 12:52:51 -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
Jeremy Singer-Vine 7c84090f59 Bump to v0.5.21 2020-05-27 22:25:12 -04:00
Jeremy Singer-Vine 81104301cb Bump to v0.5.20 2020-04-29 09:31:07 -04:00
Jeremy Singer-Vine 9c4329d116 Bump to v0.5.19 2020-04-16 14:37:41 -04:00
Jeremy Singer-Vine 830d11700a Improve utils.decimalize performace [h/t ubmarco]
See: https://github.com/jsvine/pdfplumber/issues/197
2020-04-16 14:34:10 -04:00
Jeremy Singer-Vine dead89c86d Bump to v0.5.18 2020-04-01 23:36:21 -04:00
Jeremy Singer-Vine d68e8813be Consist. handle edge-ish objects for table-finding
Allow lines/rects/curves to be passed as "explicit_..._lines" params.

Fixes https://github.com/jsvine/pdfplumber/issues/127
2020-04-01 23:34:36 -04:00
Jeremy Singer-Vine 0712711a36 Bump to version 0.5.17 2020-04-01 09:17:24 -04:00
Jeremy Singer-Vine 8a5d858b60 Improve/fix extract_text bug, esp. re. vert. text
Previously, utils.extract_text(...) returned incorrect results in
certain cases when vertical text was present, as observed in
https://github.com/jsvine/pdfplumber/pull/192. This commit fixes that
by first segregating vertical and horizontal text (via "upright" char
attribute) before clustering characters.

It also adds two parameters, horizontal_ltr and vertical_ttb, to give
users control over whethere words are meant to be read left-to-right
and/or top-to-bottom vs. their opposites.
2020-04-01 09:13:18 -04:00
Jeremy Singer-Vine 56f96d8693 Add @cheungpat to acknowledgments
See https://github.com/jsvine/pdfplumber/pull/179
2020-03-29 20:46:11 -04:00
Jeremy Singer-Vine 76bd81815b Bump to v0.5.16 and update CHANGELOG 2020-01-12 23:09:07 -05:00
Jeremy Singer-Vine df00787ada Prevent custom LAParams from raising exception
Issue #168 / PR #169. Many thanks to @frascuchon for submitting the PR,
which is the source for the code/idea in this commit.
2020-01-12 23:08:58 -05:00
Jeremy Singer-Vine 6c2e474490 Update pdfminer.six/pillow reqs & bump to v0.5.15 2020-01-05 21:33:49 -05:00
Jeremy Singer-Vine 8c8e424c65 Fix README typo (h/t @choiasher) + nix v0.6.0 note 2019-12-06 09:02:17 -05:00
Jeremy Singer-Vine 0d3c83ea77 Move visual-debug dependencies & note ghostscript
Addresses https://github.com/jsvine/pdfplumber/issues/144
2019-10-14 22:40:54 -04:00
Jeremy Singer-Vine e8159355ba Bump to version 0.5.14 2019-10-06 18:07:52 -04:00
Jeremy Singer-Vine b83afee9fb Add test for PR 138 and thank @samkit-jain 2019-10-06 17:59:39 -04:00
Jeremy Singer-Vine 4ef679d6d7 Add test for PR 136 and bump version 2019-08-29 19:05:23 -04:00
Geoff Hing 693b210aaa Indicate that extracting form fields is an example
The snippet I added to the README won't cover cases like nested fields,
so set expectations accordingly.
2019-07-24 10:00:57 -05:00
Geoff Hing f5d4347d83 Document accessing form data
Form values in PDF files are handled differently than other text, so
it's not supported through the existing pdfminer APIs, but it can be
access through pdfminer's wrapping of pdfplumber.

Add a section to the README to save others the confusion I faced when
figuring out how to access form data.

Addresses #120
https://github.com/jsvine/pdfplumber/issues/120
2019-07-22 20:28:04 -05:00
Jeremy Singer-Vine 8fa335247f Merge branch 'master' of github.com:jsvine/pdfplumber 2019-04-14 23:37:49 -04:00
Jeremy Singer-Vine 4d015fe4f0 Bump to v0.5.12 2019-04-14 23:22:33 -04:00
Jeremy Singer-Vine 96b2e124aa Add troubleshooting note for ImageMagick on Debian
Thanks to @parikls via https://github.com/jsvine/pdfplumber/issues/87
2019-04-14 23:19:29 -04:00
Jeremy Singer-Vine 6f70d0937a Add support for parsing password-protected PDFs
Thanks to @nikhilbhawsinka for raising the question in
https://github.com/jsvine/pdfplumber/issues/101

Test PDF via https://www.novapdf.com/pdf-example-files-created-with-novapdf-kb.html
2019-04-14 23:19:16 -04:00
Asaf 0b17c4b692 pages variable typo in example
my_pdf.page[0] => my_pdf.pages[0]
2019-01-23 13:38:53 +02:00
Jeremy Singer-Vine b2fbb9dd24 Bump to v0.5.11 2018-11-13 23:14:53 -05:00
Jeremy Singer-Vine f8fdd27d3d Add test for PR 88 and thank @OisinMoran 2018-11-08 22:27:59 -05:00
Jeremy Singer-Vine eb8aef5eb1 Bump to v0.5.10 and update changelog 2018-08-03 09:54:58 -04:00
Jeremy Singer-Vine 62f5cec92c Add another thanks! 2018-08-03 09:54:42 -04:00
Jeremy Singer-Vine 21fa0f9345 Update acknowledgments. (Thanks!) 2018-08-02 22:42:29 -04:00
Jeremy Singer-Vine a618efc083 Bump to version 0.5.9 2018-07-10 22:58:59 -04:00
Jeremy Singer-Vine 99f9b5069d Update version number in README.md 2018-03-06 09:09:29 -05:00
Jeremy Singer-Vine 04a2daf59c Add clearer instructions re. pull requests 2018-02-21 07:56:57 -05:00
Jeremy Singer-Vine ee7b4c2a6b Bump to v0.5.7 2018-01-20 18:56:53 -05:00
Samyak Jain 75e36237ab Fixed typo in README 2017-12-05 14:59:14 +05:30
Jeremy Singer-Vine fd25a6a087 Fix issue #41 ...
... in which PDF-object-referenced cropboxes/mediaboxes weren't being
fully resolved. Thanks to @dankeemahill for flagging!
2017-11-21 23:23:09 -05:00
Jeremy Singer-Vine 731faf46db Update version number in README.md 2017-05-10 23:03:57 -04:00
Jeremy Singer-Vine 03706f4565 Fix issue #30 by pinning pdfminer.six version 2017-04-27 09:40:46 -04:00
Jeremy Singer-Vine 0108777028 Add San Jose PD firearm search report example 2017-02-27 22:40:04 -05:00
Jeremy Singer-Vine 72a13c951e v0.5.3; quickfix re. ImageMagick/wand import
Allow `pdfplumber` import even if ImageMagick not installed.
2017-02-27 20:11:18 -05:00
Jeremy Singer-Vine b44f2dc3bc v0.5.2
@ Added
- Access to `curve` points. (E.g., `page.curves[0]["points"]`.)
- Ability for `.draw_line` to draw `curve` points.

@ Changed
- Disaggregated "min_words_vertical" (default: 3) and "min_words_horizontal" (default: 1), removing "text_word_threshold".
- Internally, made `utils.decimalize` a bit more robust; now throws errors on non-decimalizable items.
- Now explicitly ignoring some (obscure) `pdfminer` object attributes.
- Raw input for `.draw_line` from a bounding box to `((x, y), (x, y))`, for consistency with `curve["points"]` and with `Pillow`'s underlying method.

@ Fixed
- Fixed typo bug when `.rect_edges` is called before `.edges`
2017-02-27 00:11:09 -05:00
Jeremy Singer-Vine e204313961 Fix typo ("vertical" -> "horizontal") 2017-02-26 10:55:05 -05:00
Jeremy Singer-Vine 96d7a2af05 v0.5.1; minor fixes/tweaks, adds line quick-draw
- Quick-draw `PageImage` methods: `.draw_vline`, `.draw_vlines`, `.draw_hline`, and `.draw_hlines`.
- Boolean parameter `keep_blank_chars` for `.extract_words(...)` and `TableFinder` settings.

- Increased default `text_tolerance` and `intersection_tolerance` TableFinder values from 1 to 3.

- Properly handle conversion of PDFs with transparency to `pillow` images.
- Properly handle `pandas` DataFrames as inputs to multi-draw commands (e.g., `PageImage.draw_rects(...)`).
2017-02-26 10:53:19 -05:00
Jeremy Singer-Vine 955b126b80 v0.5.0
- Completely overhauls the approach to table extraction.
- Adds visual debugging.
- See CHANGELOG.md for details.
2017-02-25 13:30:50 -05:00
Jeremy Singer-Vine fcccd8e2d3 Merge branch 'master' into develop 2017-01-26 16:21:55 -05:00