794 Commits

Author SHA1 Message Date
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
Jeremy Singer-Vine e8fd841c6b Change get_text -> extract_text, for symmetry 2016-03-06 20:24:02 -05:00
Jeremy Singer-Vine 4f7027e42d Merge pull request #4 from jsvine/version-0.3.0
Version 0.3.0
2016-03-06 20:07:58 -05:00
Jeremy Singer-Vine 355efcb1ef Fix demo link v0.3.0 2016-03-06 19:52:17 -05:00
Jeremy Singer-Vine 560601b34b Bump to v0.3.0 2016-03-06 19:49:59 -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 f47fee85be Update NICS example to use extract_table
... instead of `utils` methods.
2016-03-06 18:30:41 -05:00
Jeremy Singer-Vine 756cc69358 Decimalize page width/height/initial_doctop 2016-03-06 18:27:45 -05:00
Jeremy Singer-Vine 3fe138597b Remove extraneous bbox arg in extract_table 2016-03-06 17:35:05 -05:00
Jeremy Singer-Vine f2fff6fd8b Add strict option to Page.crop 2016-03-06 17:05:34 -05:00
Jeremy Singer-Vine 8cfdb6d35a Add Page.collate_chars 2016-03-06 14:41:53 -05:00
Jeremy Singer-Vine dbdc9aa624 Add pandas to tests_require in setup.py 2016-03-06 14:33:40 -05:00
Jeremy Singer-Vine 71b797f6db CLI: Replace pandas w/unicodecsv; add encoding arg 2016-03-06 14:31:15 -05:00
Jeremy Singer-Vine f8fbd572ce Move to using Decimal instead of float
- Should make equality comparisons more precise
- PDF class now accepts a "precision" argument, used to quantize floats
- This commit also adds some changes/improvements to JSON output
2016-03-06 13:01:18 -05:00
Jeremy Singer-Vine 5aa8d638ae Remove empty test 2016-03-06 11:42:15 -05:00
Jeremy Singer-Vine c0e6979a98 Add test for very basic things 2016-03-06 11:41:48 -05:00
Jeremy Singer-Vine 18d3c78afc Resolve un-resolved metadata fields & decode_text 2016-03-06 11:34:36 -05:00
Jeremy Singer-Vine 0a15497731 Add rect_edge to CLI output options 2016-03-05 19:34:02 -05:00
Jeremy Singer-Vine 926d8c9c0e Add note on table strategies 2016-03-05 19:28:38 -05:00
Jeremy Singer-Vine 5c5d64232c Make slight simplification to find_gutters 2016-03-05 19:10:06 -05:00
Jeremy Singer-Vine 8d7009b4b6 Add note and validator to detect_gutters 2016-03-05 19:06:07 -05:00
Jeremy Singer-Vine d682cd2f8d Simplify height accession in parse_objects(...) 2016-03-05 19:05:05 -05:00
Jeremy Singer-Vine 73d44c21c2 Fix doctop-on-crop calculation 2016-03-05 19:03:21 -05:00
Jeremy Singer-Vine 3a8d0b7d53 Refactor find_gutters 2016-03-05 18:20:12 -05:00
Jeremy Singer-Vine 5d23cc88fd Minor whitespace tweaks 2016-03-05 17:46:58 -05:00
Jeremy Singer-Vine 847c39ea17 Slightly simplify .extract_table structure 2016-03-05 17:46:05 -05:00
Jeremy Singer-Vine 0bcb5222bf Entirely remove pandas dependency and usage 2016-03-05 15:28:13 -05:00
Jeremy Singer-Vine 90269d250a Pure-Pythonize utils.extract_table 2016-03-05 15:18:18 -05:00
Jeremy Singer-Vine cd4aee8c49 Modularize find_gutters, and start removing pandas 2016-03-05 15:10:01 -05:00
Jeremy Singer-Vine c6133aafa9 Rename CroppedPage prop "page" -> "parent_page" 2016-03-05 14:08:12 -05:00
Jeremy Singer-Vine 88b4cc2c94 Tweak tests to handle changes to .utils 2016-03-05 14:06:51 -05:00
Jeremy Singer-Vine efe7967812 Overhaul .utils 2016-03-05 14:06:30 -05:00