Commit Graph

29 Commits

Author SHA1 Message Date
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
Jeremy Singer-Vine 85417a7d4c Thank @boblannon-picwell 2016-12-09 10:22:11 -05:00
Jeremy Singer-Vine 648354ac62 Switch core page ID from .pageid to .page_number
Also: Change "pageid" to "page_id". "pageid" was inherited from
pdfminer, but "page_id" is easier to read.

h/t @jsfenfen
2016-04-23 21:21:42 -04:00
Jeremy Singer-Vine 571b7156c1 Update new default tolerances in README 2016-04-23 21:16:11 -04:00
Jeremy Singer-Vine abebdcbe7d Add Dan Nguyen's Calif. WARN Act gist to demos 2016-04-04 15:05:19 -04:00
Jeremy Singer-Vine 1c09330d65 Add .filter description to README 2016-03-09 07:53:16 -05:00
Jeremy Singer-Vine 34197f7d6d Rename .from_path->.open (keeping former as alias)
Enables idiomatic-ish treatment, e.g.:

with pdfplumber.open(path) as pdf:
    [do things]
2016-03-09 07:25:46 -05:00
Jeremy Singer-Vine d4534faf08 Add .extract_words(...) and decimalize tolerances 2016-03-07 23:06:08 -05:00
Jeremy Singer-Vine e8fd841c6b Change get_text -> extract_text, for symmetry 2016-03-06 20:24:02 -05:00
Jeremy Singer-Vine 355efcb1ef Fix demo link 2016-03-06 19:52:17 -05:00
Jeremy Singer-Vine 1b861b9f1c Rename collate_chars -> get_text
collate_chars still available, to avoid breaking scripts that use it.
2016-03-06 19:07:38 -05:00
Jeremy Singer-Vine bc9d5410e5 Update README 2016-03-06 18:56:06 -05:00
Jeremy Singer-Vine 0a15497731 Add rect_edge to CLI output options 2016-03-05 19:34:02 -05:00
Jeremy Singer-Vine 96f3be997e Update README 2016-02-29 00:03:26 -05:00
Jeremy Singer-Vine 7005d9dd1a Add Demos to TOC 2016-02-20 19:49:43 -05:00
Jeremy Singer-Vine 69c10ab0e0 Demonstrations -> Demos 2016-02-20 19:48:40 -05:00
Jeremy Singer-Vine 8a9191bcae Add utils section to README and example notebook 2016-02-20 19:42:37 -05:00
Jeremy Singer-Vine d5611bfe50 Remove mention of image and figure types
Currently, they're basically useless.
2016-02-04 16:42:43 -05:00
Jeremy Singer-Vine 1a1e24c592 Add a few notes to README 2015-12-17 22:41:53 -05:00
Jeremy Singer-Vine ebac17282f Fix example PDF link 2015-12-17 22:19:32 -05:00
Jeremy Singer-Vine 52529d4ee7 Add CLI, add pandas req, change object type names 2015-12-17 22:15:26 -05:00
Jeremy Singer-Vine 93281a2080 Simplify basic example 2015-12-17 20:57:25 -05:00
Jeremy Singer-Vine 663b3dc328 Fix README lists 2015-12-15 11:47:38 -05:00
Jeremy Singer-Vine ee04595109 Remove pandas and bump to 0.0.2 2015-12-15 11:40:14 -05:00
Jeremy Singer-Vine b3a7cb8359 Initial commit 2015-08-23 23:14:33 -04:00