Commit Graph

666 Commits

Author SHA1 Message Date
Jeremy Singer-Vine cd2f768330 Upgrade pdfminer.six from 20221105 to 20231228 2024-03-03 08:34:04 -05:00
Jeremy Singer-Vine efca277079 Fix layout-caching issue (#1097) caused by 0bfffc2
Layout wasn't actually getting cached, now it is.
2024-03-02 19:18:32 -05:00
Jeremy Singer-Vine 8912931bf1 Merge pull request #1094 from dhdaines/structure_fixes
Handle missing ParentTree
2024-02-16 12:03:37 -05:00
David Huggins-Daines 3e74fb134f fix: handle missing ParentTree 2024-02-14 08:52:56 -05:00
Jeremy Singer-Vine 1ad3905612 Merge branch 'stable' of github.com:jsvine/pdfplumber into stable 2024-02-10 18:36:41 -05:00
Jeremy Singer-Vine 3bb642bfa2 Bump version to v0.10.4 v0.10.4 2024-02-10 18:35:21 -05:00
Jeremy Singer-Vine b1114e53fd Update CHANGELOG.md 2024-02-10 18:34:44 -05:00
Jeremy Singer-Vine 4f39d0364d Check self.cur_item._objs length before [-1]
In theory shouldn't happen, but came across a malformed PDF that threw
an error here; simple enough check that seemed worth adding.
2024-02-10 18:31:17 -05:00
Jeremy Singer-Vine f73fbe1c6c Add "Visually debugging the table-finder" note 2024-02-10 17:04:27 -05:00
Jeremy Singer-Vine 38150149e0 Remove "Troubleshooting ImageMagick", outdated
ImageMagick no longer used, phased out in favor of pypdfium2's image
rendering.
2024-02-10 17:00:28 -05:00
Jeremy Singer-Vine 94d9483410 Update CHANGELOG.md 2024-02-10 16:59:05 -05:00
Jeremy Singer-Vine 222595909b Merge pull request #1082 from jsvine/dependabot/pip/jupyterlab-3.6.7
Bump jupyterlab from 3.4.2 to 3.6.7
2024-02-10 16:53:58 -05:00
Jeremy Singer-Vine 7b9101a30e Merge pull request #1090 from dhdaines/issue-1089
Explicitly close `pypdfium2.PdfDocument` in `get_page_image`
2024-02-10 16:52:46 -05:00
David Huggins-Daines 7322077e0f fix: placate flake8 2024-02-05 08:53:03 -05:00
David Huggins-Daines f3d20fcf35 fix: prevent pypdfium2 file leak (fixes: #1089) 2024-02-05 08:52:51 -05:00
dependabot[bot] 00b867a5be Bump jupyterlab from 3.4.2 to 3.6.7
Bumps [jupyterlab](https://github.com/jupyterlab/jupyterlab) from 3.4.2 to 3.6.7.
- [Release notes](https://github.com/jupyterlab/jupyterlab/releases)
- [Changelog](https://github.com/jupyterlab/jupyterlab/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jupyterlab/jupyterlab/compare/@jupyterlab/vdom@3.4.2...@jupyterlab/vdom@3.6.7)

---
updated-dependencies:
- dependency-name: jupyterlab
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-19 21:11:21 +00:00
Jeremy Singer-Vine 07d9997ee5 Standardize handling of cropbox
... fixing various issues with PageImage. Also adds
force_mediabox parameter to Page.to_image(...).

Thanks to @stefanw for flagging:
    https://github.com/jsvine/pdfplumber/issues/1054
2024-01-05 10:14:44 -05:00
Jeremy Singer-Vine f4f4473a17 Change pixels->points in docs 2023-11-10 09:11:51 -05:00
Jeremy Singer-Vine 584421bd8a Fix Markdown rendering issue in docs 2023-11-10 09:09:33 -05:00
Jeremy Singer-Vine 401b82cf74 Fix docs re. keep_blank_chars in table extraction
(It is `text_keep_blank_chars`.)

h/t @Pk13055 via:
https://github.com/jsvine/pdfplumber/pull/1003#issuecomment-1805664102
2023-11-10 09:05:36 -05:00
Jeremy Singer-Vine c134e73028 Add @afriedman412 to contributors 2023-11-09 15:24:10 -05:00
Jeremy Singer-Vine 506d007f9c Update CHANGELOG.md 2023-11-09 15:23:13 -05:00
Jeremy Singer-Vine fff846b073 Merge pull request #1041 from afriedman412/x_tolerance_ratio
Add `x_tolerance_ratio` param to `extract_text` and similar functions
2023-11-09 15:18:27 -05:00
Jeremy Singer-Vine 35ed9e0695 Merge pull request #963 from dhdaines/structure_tree
Support for PDF 1.3 logical structure
2023-11-09 15:08:09 -05:00
Andy Friedman 33ac833555 Merge pull request #1 from jsvine/pr-1041-feedback
Feedback/suggestions on PR 1041
2023-11-09 14:59:19 -05:00
Jeremy Singer-Vine ba58e16450 Fix Page.close() regression + docs h/t @luketudge
See https://github.com/jsvine/pdfplumber/issues/1042

- Re-adds `Page.close()` method
    - Was accidentally removed in https://github.com/jsvine/pdfplumber/commit/9587cc7d2292a1eae7a0150ab406f9365944266f
- Makes `PDF.close()` close all pages as well
- Improves relevant documentation
2023-11-09 14:13:02 -05:00
Jeremy Singer-Vine 98d970084d Add x_tolerance_ratio documentation to README.md 2023-11-08 15:47:31 -05:00
Jeremy Singer-Vine 0145647c58 Add x_tolerance_ratio test for extract_words(...) 2023-11-08 15:36:42 -05:00
Jeremy Singer-Vine a289fe7cbb Simplify x_tolerance_ratio handling
Tries removing the property-setting, which felt a bit too complex.
2023-11-08 15:33:35 -05:00
Andy Friedman 1359fad7c0 adding x_tolerance_ratio functionality 2023-11-04 16:33:11 -04:00
Andy Friedman 9af84e2b5e Revert "linting"
This reverts commit c2564653e8.
2023-11-02 11:27:35 -04:00
Andy Friedman c2564653e8 linting 2023-11-01 16:13:56 -04:00
Andy Friedman 5a85ab7a0c add x_tolerance_ratio 2023-11-01 13:54:10 -04:00
Jeremy Singer-Vine 6437b72dbb Merge branch 'echedey-ls/stable' into develop 2023-10-28 09:11:34 -04:00
Jeremy Singer-Vine e18f333e4b Merge pull request #1032 from echedey-ls/stable
Add `gswin64c` as another possible GS executable
2023-10-28 09:10:02 -04:00
Jeremy Singer-Vine 0c7a279a3b Update CHANGELOG and README re. PR #1032 2023-10-28 09:05:54 -04:00
Jeremy Singer-Vine bcb762542e Merge branch 'develop' into echedey-ls/stable 2023-10-28 09:03:02 -04:00
Jeremy Singer-Vine 9815f7a2bf Apply 'make format' 2023-10-28 09:02:22 -04:00
echedey-ls dbf6a3edfd Add gswin64c as another possible GS executable 2023-10-28 13:17:36 +02:00
Jeremy Singer-Vine 0bfffc2448 Fix Page.get_textmap caching for extra_attrs=[...]
... by preconverting list kwargs to tuples.
2023-10-27 10:53:17 -04:00
Jeremy Singer-Vine d9561d15cc Merge pull request #1029 from jsvine/develop
Merge v0.10.3 into stable
2023-10-26 10:07:21 -04:00
Jeremy Singer-Vine 2e838d1194 Bump to v0.10.3 v0.10.3 2023-10-26 10:01:42 -04:00
Jeremy Singer-Vine 529b3d8126 Merge branch 'stable' into develop 2023-10-26 09:57:08 -04:00
Jeremy Singer-Vine ceef47b49d Merge pull request #1020 from hussainshaikh12/stable
Update link causing 404
2023-10-23 11:07:18 -04:00
Hussain Shaikh 94981ce23f Update link causing 404 2023-10-21 20:38:12 +05:30
Jeremy Singer-Vine 1bba5a8e62 Update CHANGELOG.md 2023-09-11 12:20:41 -04:00
Jeremy Singer-Vine 2429fd7bf3 Merge pull request #983 from dhdaines/issue-982
Respect `use_text_flow` in `extract_text`
2023-09-11 12:13:58 -04:00
David Huggins-Daines ed707a7ec6 fix: respect use_text_flow in extract_text (fixes #982) 2023-09-06 15:51:50 -04:00
David Huggins-Daines 036044d92e fix: handle more MCR/OBJR madness 2023-09-05 23:47:23 -04:00
David Huggins-Daines 14f9a67c66 fix: complete coverage and fix handling of OBJR/MCR 2023-09-05 23:03:17 -04:00