-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Issue 1635: Decypting PDF ebboks fixed #1689
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me. Tried with two problem pdfs, decrypted successfully. Thanks for tracking this down!
Works. Thank you! |
I've found a PDF where this bugfix wasn't enough to make the DeDRM work again. There's code in the
and that gave me some Python error about being unable to combine str and bytes.
Maybe that can be added to this PR as well. |
Changed MAC address fetching code to address possibile regression
Co-authored-by: Andrew Innes <[email protected]> Co-authored-by: Satsuoni <[email protected]>
Co-authored-by: Satsuoni <[email protected]>
The decryption of pdf ebooks was broken (see #1635).
If fixed this with two modifications
First of all, I got an empty list of objids when parsing a pdf document: In Python 2, the build-in function zip() returns a list and not an iterator. This changed in Python 3. I converted the iterator into a list again and got objids back.
Another correction was needed. to make the predictor code work again.