Closed metaist closed 1 year ago
If there's an encrypted PDF, first try a blank password (empty string) and then use getpass to prompt for a password.
getpass
There's no exception for the wrong password, so we just check if you provided a password or not.
If there's an encrypted PDF, first try a blank password (empty string) and then use
getpass
to prompt for a password.