-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-add textboxhorizontal/etc. when laparams (#359) #364
Conversation
This commit reinstates access to higher-level layout objects (such as `textboxhorizontal`) when `laparams` is passed to `pdfplumber.open(...)`. Had been removed in `0.5.24` via 1f87898. Also adds a test for this behavior.
Codecov Report
@@ Coverage Diff @@
## develop #364 +/- ##
========================================
Coverage 98.25% 98.25%
========================================
Files 10 10
Lines 1203 1205 +2
========================================
+ Hits 1182 1184 +2
Misses 21 21
Continue to review full report at Codecov.
|
README.md
Outdated
@@ -72,6 +72,8 @@ The `open` method returns an instance of the `pdfplumber.PDF` class. | |||
|
|||
To load a password-protected PDF, pass the `password` keyword argument, e.g., `pdfplumber.open("file.pdf", password = "test")`. | |||
|
|||
To set layout analysis parameters to `pdfminer.six`'s layout engine, pass the `laparams` keyword argument, e.g., `pdfplumber.open("file.pdf", laparams = { "line_overlap": 0.7 })`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To set layout analysis parameters to `pdfminer.six`'s layout engine, pass the `laparams` keyword argument, e.g., `pdfplumber.open("file.pdf", laparams = { "line_overlap": 0.7 })`. | |
To set layout analysis parameters to `pdfminer.six`'s layout engine, pass the `laparams` keyword argument, e.g., `pdfplumber.open("file.pdf", laparams = { "line_overlap": 0.7 })`. |
Very minor. There was an extra space.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor typo suggestion. Looks good otherwise.
Thanks! Tweaked that and updated the CHANGELOG to reference this PR. |
In response to issue #359, this commit reinstates access to higher-level layout objects (such as
textboxhorizontal
) whenlaparams
is passed topdfplumber.open(...)
. Had been removed in0.5.24
via 1f87898.Also adds a test for this behavior.