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

Update iohelper.py #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

pivotman
Copy link

Some PDFs are tagged as encrypted, even though they aren't encrypted, and will open without a password prompt in a GUI PDF reader. This change attempts to "decrypt" with a blank password, before prompting for a password. This opens these troublesome files without a password prompt and allows stapler automation tasks to run.

Some PDFs are tagged as encrypted, even though they aren't encrypted, and will open without a password prompt in a GUI PDF reader. This change attempts to "decrypt" with a blank password, before prompting for a password.
Copy link
Owner

@hellerbarde hellerbarde left a comment

Choose a reason for hiding this comment

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

When I look at the original code, I dislike it very much, so I'd rather fix this weird while true construct which has no good way to cancel. If you'd be willing to look at it again, I'd be glad, but else I'll try to invest some time as soon as I can. Sorry for not waving it through, after not reacting for so long 🙈

@hellerbarde
Copy link
Owner

Thank you so much for taking the time to submit a pull request though!! Sorry, I should have led with that. I'm a little tired right now.

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.

2 participants