Skip to content
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

Quick fix to enable switching caching on and off #475

Merged
merged 5 commits into from
Sep 10, 2020

Conversation

danich1
Copy link
Contributor

@danich1 danich1 commented Aug 21, 2020

Closes #474

This is a quick fix for a bug mentioned in #474.
To reiterate: high_level script that makes extract_text and extract_pages always use caching despite the user's preference.
This PR fixes that issue and updates the parameters and in-code documentation to be consistent with extract_text_to_fp.

This commit enables caching to be turned on and off rather than be always on regardless of the user input.
@danich1 danich1 changed the title Updated high_level.py Quick fix to enable switching caching on and off Aug 21, 2020
Copy link
Member

@jstockwin jstockwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @danich1! Thanks for submitting a fix.

This looks good to me, but we'll wait for @pietermarsman's green-light before merging.

One small thing: please could you update the CHANGELOG file to reflect the fix?

@danich1
Copy link
Contributor Author

danich1 commented Sep 1, 2020

Changed the CHANGELOG.md to reflect my fix. Hope this helps!

@pietermarsman pietermarsman merged commit b4054ff into pdfminer:develop Sep 10, 2020
@pietermarsman
Copy link
Member

@danich1 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in high_level.py extract_text uses caching regardless of parameter settings
3 participants