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
David Huggins-Daines
8d485c38cd
test: trivial synthetic pdf for completing structure coverage
2023-09-05 23:03:03 -04:00
David Huggins-Daines
183d5a840b
feat: add --structure-text, like pdfinfo -struct-text (but better)
2023-08-19 10:00:28 -06:00
David Huggins-Daines
3c83366d9d
feat: extract structure tree from pages or documents
2023-08-19 09:49:48 -06:00
Jeremy Singer-Vine
336f83f6da
Update CHANGELOG.md
2023-08-19 11:40:55 -04:00
Jeremy Singer-Vine
4a76a1f3a5
Add hyperlinks and experimentality to mcid/tag notes
2023-08-19 11:38:39 -04:00
David Huggins-Daines
142fc90cc5
Support for marked content section IDs ( #961 )
2023-08-19 11:29:21 -04:00
Jeremy Singer-Vine
d8b9c1581a
Merge branch 'stable' into develop
2023-08-12 17:05:44 -04:00
Jeremy Singer-Vine
94da66c1b3
Add thanks to @jeremybmerrill
2023-08-12 17:05:21 -04:00
Jeremy B. Merrill
41498312a0
Update form-parsing example in README ( #958 )
...
Thanks to PR from @jeremybmerrill, who writes:
> This form-parsing example handles form fields recursively contained within other form fields, removes the incorrect-assumption that field-names are unique and includes the alternate field name in output (which is often a very useful guide to what's in a field).
> the prior form-parsing example used the field-name ("T" entry) as the key in the form_data dict, implicitly assuming that the field name is globally unique within a document. That's not a correct assumption; nested field names are often simply a numeric index like 1 or 0. The prior example also entirely ignored the TU entry alternate field name.
2023-08-12 17:03:39 -04:00
Jeremy Singer-Vine
f6887b5b33
Add gs_path argument to .open(...) & .repair(...)
2023-08-06 17:24:00 -04:00
Jeremy Singer-Vine
7c2d46b4a1
Fix some CHANGELOG.md formatting
2023-07-29 15:05:54 -04:00
Jeremy Singer-Vine
87d5b4a3b1
Merge pull request #951 from jsvine/develop
...
Merge v0.10.2
2023-07-29 15:03:00 -04:00
Jeremy Singer-Vine
f92a687f25
Bump to v0.10.2
v0.10.2
2023-07-29 14:52:50 -04:00
Jeremy Singer-Vine
267ec8a5d7
Update CHANGELOG.md
2023-07-29 14:51:38 -04:00
Jeremy Singer-Vine
30a52cb0ed
Add PDF.path & fix .to_image() for zipped files
...
These are related changes, since the previous approach of using
`PDF.stream.name` to distinguish between on-path and filelike-object PDFs
doesn't work for zipped files (and possibly other filelike-objects that
have a `name` property).
2023-07-29 14:30:00 -04:00
Jeremy Singer-Vine
7af3d0fa96
Merge pull request #946 from dhdaines/iterable_geometry
...
Accept Iterable for geometry utils (fixes #945 )
2023-07-28 14:46:16 -04:00
David Huggins-Daines
9014a2939f
fix: upgrade mypy to avoid erroneous errors
...
See https://github.com/python/mypy/issues/13627 (among others)
2023-07-25 16:14:22 -04:00
David Huggins-Daines
72c3a0efde
fix: isort
2023-07-25 16:10:46 -04:00
David Huggins-Daines
53bee23e5a
feat: accept Iterable for geometry utils.
...
Note: this removes the fragile-looking type manipulation in intersects_bbox as
making it work with iterables is very ugly and I am not convinced of its
usefulness
2023-07-24 10:15:34 -04:00
Jeremy Singer-Vine
28f4ebeb3c
Use pdfium's *public* (not private) render method
...
Thanks to @mara004 for flagging here:
https://github.com/jsvine/pdfplumber/discussions/899#discussioncomment-6520928
2023-07-23 18:19:50 -04:00