Open a protected pdf file in python
问题 I write a pdf cracking and found the password of the protected pdf file. I want to write a program in Python that can display that pdf file on the screen without password.I use the PyPDF library. I know how to open a file without the password, but can't figure out the protected one.Any idea? Thanks filePath = raw_input() password = 'abc' if sys.platform.startswith('linux'): subprocess.call(["xdg-open", filePath]) 回答1: The approach shown by KL84 basically works, but the code is not correct (it