ENH: extract-text now can store output in files, each page's text can be stored in a different file#229
Open
papametis wants to merge 8 commits intopy-pdf:mainfrom
Open
ENH: extract-text now can store output in files, each page's text can be stored in a different file#229papametis wants to merge 8 commits intopy-pdf:mainfrom
papametis wants to merge 8 commits intopy-pdf:mainfrom
Conversation
…tored in a different file: initial implementation and documentation
…into feature2-branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This enhancement adds an option
--output-patterntoextract-textwhich allows it to store its output in files instead of echoing it, either the entire output in a single file, or each page's text in a different file, depending on the output pattern given.Also, since there were no unit tests for the
extract-textcommand before,test-extract-text.pywas made with 2 unit tests for the command (one for an optionless use ofextract-text, where the output is echoed, and one where--output-patternis used to create files with the output).Fixes #213 .
Checklist:
CHANGELOG.mddocs/user/By submitting this pull request, I confirm that my contribution is made under the terms of the BSD 3-Clause license.