-
Notifications
You must be signed in to change notification settings - Fork 900
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
pdf2txt: clean up construction of LAParams from arguments #682
Merged
Commits on Aug 16, 2021
-
Fix pdf2txt --boxes-flow=disabled
Fixes: ``` $ pdf2txt.py --boxes-flow=disabled test.pdf Traceback (most recent call last): File "tools/pdf2txt.py", line 204, in <module> sys.exit(main()) File "tools/pdf2txt.py", line 198, in main outfp = extract_text(**vars(A)) File "tools/pdf2txt.py", line 66, in extract_text pdfminer.high_level.extract_text_to_fp(fp, **locals()) File "pdfminer/high_level.py", line 85, in extract_text_to_fp interpreter.process_page(page) File "pdfminer/pdfinterp.py", line 896, in process_page self.device.end_page(page) File "pdfminer/converter.py", line 51, in end_page self.cur_item.analyze(self.laparams) File "pdfminer/layout.py", line 822, in analyze group.analyze(laparams) File "pdfminer/layout.py", line 575, in analyze LTTextGroup.analyze(self, laparams) File "pdfminer/layout.py", line 362, in analyze obj.analyze(laparams) File "pdfminer/layout.py", line 575, in analyze LTTextGroup.analyze(self, laparams) File "pdfminer/layout.py", line 362, in analyze obj.analyze(laparams) File "pdfminer/layout.py", line 575, in analyze LTTextGroup.analyze(self, laparams) File "pdfminer/layout.py", line 362, in analyze obj.analyze(laparams) File "pdfminer/layout.py", line 577, in analyze self._objs.sort( File "pdfminer/layout.py", line 578, in <lambda> key=lambda obj: (1 - laparams.boxes_flow) * obj.x0 TypeError: unsupported operand type(s) for -: 'int' and 'str' ``` Related: Issue pdfminer#477, PR pdfminer#479
Configuration menu - View commit details
-
Copy full SHA for 5e52132 - Browse repository at this point
Copy the full SHA 5e52132View commit details
Commits on Aug 18, 2021
-
Configuration menu - View commit details
-
Copy full SHA for fbb10b8 - Browse repository at this point
Copy the full SHA fbb10b8View commit details
Commits on Sep 29, 2021
-
Configuration menu - View commit details
-
Copy full SHA for d3d7d0e - Browse repository at this point
Copy the full SHA d3d7d0eView commit details
Commits on Oct 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1f90cc2 - Browse repository at this point
Copy the full SHA 1f90cc2View commit details
Commits on Oct 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 92749b7 - Browse repository at this point
Copy the full SHA 92749b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for de280fa - Browse repository at this point
Copy the full SHA de280faView commit details -
pdf2txt: clean up handling of layout parameter arguments
* avoid specifying default values twice * construct LAParams earlier, rather than passing its components around * fix crash with --boxes_flow=disabled
Configuration menu - View commit details
-
Copy full SHA for 896da5e - Browse repository at this point
Copy the full SHA 896da5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 12e8a1b - Browse repository at this point
Copy the full SHA 12e8a1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 60c949d - Browse repository at this point
Copy the full SHA 60c949dView commit details
Commits on Jan 25, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1fa998c - Browse repository at this point
Copy the full SHA 1fa998cView commit details -
Improve readability of setting LAParams by explicitly copying them fr…
…om parsed_args into init of LAParams. And move all parsed_args post processing to the parse_args() method.
Configuration menu - View commit details
-
Copy full SHA for d8296f6 - Browse repository at this point
Copy the full SHA d8296f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2215fa0 - Browse repository at this point
Copy the full SHA 2215fa0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5b015c - Browse repository at this point
Copy the full SHA c5b015cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.