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`
v0.5.2
2017-02-27 00:11:09 -05:00
Jeremy Singer-Vine
6d2d0102a3
Merge pull request #24 from jsvine/develop
...
v0.5.1; minor fixes/tweaks, adds line quick-draw
2017-02-26 10:56:38 -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(...)`).
v0.5.1
2017-02-26 10:53:19 -05:00
Jeremy Singer-Vine
ba9d7ab0c8
Add test for issue #13
...
Thanks to @jsfenfen: https://github.com/jsvine/pdfplumber/issues/13
2017-02-25 14:39:47 -05:00
Jeremy Singer-Vine
c16ce03707
Merge pull request #23 from jsvine/develop
...
v0.5.0
v0.5.0
2017-02-25 14:17:58 -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
d5afcf6092
Merge pull request #20 from jsvine/develop
...
Version 0.4.6
2017-01-26 16:55:25 -05:00
Jeremy Singer-Vine
ec5a527fbb
Bump to v0.4.6
v0.4.6
2017-01-26 16:53:00 -05:00
Jeremy Singer-Vine
fcccd8e2d3
Merge branch 'master' into develop
2017-01-26 16:21:55 -05:00
Jeremy Singer-Vine
7f044360e0
Fix handling of rotated pages
...
Now coordinates should correspond to actual appearance
2017-01-26 16:20:18 -05:00
Jeremy Singer-Vine
85417a7d4c
Thank @boblannon-picwell
2016-12-09 10:22:11 -05:00
Jeremy Singer-Vine
6333a0ece5
Bump to v0.4.5
v0.4.5
2016-12-09 10:17:40 -05:00
Jeremy Singer-Vine
9f9b4f3043
Merge pull request #18 from boblannon-picwell/fix-psliteral
...
handling PSLiterals in metadata
2016-12-09 10:16:32 -05:00
Bob Lannon
5aaf15f0c0
handling PSLiterals in metadata
2016-12-08 19:14:48 -05:00
Jeremy Singer-Vine
c5bbf497ba
Merge pull request #15 from jsvine/hotfix-0.4.4
...
Fix resolution/decoding of list-type metadata
2016-05-24 13:44:56 -07:00
Jeremy Singer-Vine
302b8a72ad
Fix resolution/decoding of list-type metadata
...
Big thanks to @jeffbarrera for flagging:
https://github.com/jsvine/pdfplumber/issues/14
2016-05-24 16:41:03 -04: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
ee98c6d1e8
Add test for CA WARN report, h/t @dannguyen
2016-04-23 21:06:33 -04:00
Jeremy Singer-Vine
002bcf5f75
Change default x/y tolerances from 0 to 5
...
Five points seems like a sane default, and appears to fit common
use-cases more frequently than zero does.
2016-04-23 21:04:58 -04:00
Jeremy Singer-Vine
bb49ac8f03
Bump to v0.4.3
v0.4.3
2016-04-12 22:32:04 -04:00
Jeremy Singer-Vine
6a6f5aa3ef
Move import line
2016-04-12 22:06:58 -04:00
Jeremy Singer-Vine
2f1ee59d3c
When extracting table cells, use chars' midpoints
...
... instead of top-points. Typically not a problem, but more closely
matches human expectations when dealing with chars that have
very-large/buffered bounding boxes.
2016-04-12 22:04:59 -04:00
Jeremy Singer-Vine
a8180425be
Add parentheses for slight readbility improvement
2016-04-12 22:04:07 -04:00
Jeremy Singer-Vine
2a24f8f797
Use is_instance instead of type for decimilization
...
Also, decimalize positions returned by use_strategy
2016-04-12 22:01:59 -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
bacd5c18ed
Merge pull request #11 from jsvine/gutter-fix
...
Fix find_gutters — should ignore " " chars
2016-03-22 23:59:18 -04:00
Jeremy Singer-Vine
fc8cf96aac
Bump to v0.4.2
2016-03-22 23:58:13 -04:00
Jeremy Singer-Vine
3576ec3ed1
Fix find_gutters — should ignore " " chars
2016-03-22 23:58:00 -04:00
Jeremy Singer-Vine
9255ed2f72
Bump to v0.4.1
v0.4.1
2016-03-10 13:09:24 -05:00
Jeremy Singer-Vine
c114734931
Merge pull request #8 from jsfenfen/master
...
Write to sys.stdout in python 2.X, not sys.stdout.buffer
Also, fix extract_words bug.
2016-03-10 11:04:35 -07:00
Jacob Fenton
7cf92f933a
Fix bug that leaves out first char found after width differential greater than x_tolerance
2016-03-10 10:01:54 -08:00
Jacob Fenton
e06133e49a
write to sys.stdout in python 2.X, not sys.stdout.buffer
2016-03-10 09:57:29 -08:00
Jeremy Singer-Vine
00e56855b6
Merge pull request #7 from jsvine/version-0.4.0
...
Version 0.4.0
2016-03-09 07:56:14 -05:00
Jeremy Singer-Vine
1c09330d65
Add .filter description to README
v0.4.0
2016-03-09 07:53:16 -05:00
Jeremy Singer-Vine
bce81163ef
Bump to v0.4.0
2016-03-09 07:29:27 -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
f4f93e4bb0
Replace atexit with __exit__
2016-03-09 07:09:57 -05:00
Jeremy Singer-Vine
e7c5013cb3
Account for " " chars in .extract_text(...)
2016-03-08 16:14:32 -05:00
Jeremy Singer-Vine
e51118ccfa
Ensure that Page subclasses have necessary attrs
2016-03-08 10:15:26 -05:00
Jeremy Singer-Vine
3feaef8341
Store .decimalize(...) as property of Page
2016-03-08 09:55:31 -05:00
Jeremy Singer-Vine
381bc6ba02
Add utils.filter_objects(...) and Page.filter(...)
2016-03-08 09:47:23 -05:00
Jeremy Singer-Vine
50e89fd570
Remove helpers.py; move those methods to utils.py
2016-03-07 23:08:09 -05:00
Jeremy Singer-Vine
d4534faf08
Add .extract_words(...) and decimalize tolerances
2016-03-07 23:06:08 -05:00
Jeremy Singer-Vine
4e107bd45b
Return None if extracting_text from char-less obj
...
... instead of raising exception
2016-03-07 17:24:19 -05:00
Jeremy Singer-Vine
738496c525
ASCII-ify setup.py
2016-03-07 16:53:39 -05:00
Jeremy Singer-Vine
db49b7ec2f
Fix setup.py trying-to-be-fancy bug. -> v0.3.2
v0.3.2
2016-03-07 16:50:30 -05:00
Jeremy Singer-Vine
2da65b4e65
Merge pull request #5 from jsvine/version-0.3.1
...
Version 0.3.1
2016-03-06 20:25:29 -05:00
Jeremy Singer-Vine
b8b384e186
Bump to v0.3.1
v0.3.1
2016-03-06 20:24:13 -05:00