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

DeDRM fails to decrypt: encryption EBX_HANDLER (IndexError: list index out of range) #233

Closed
michal-devel opened this issue Dec 14, 2022 · 5 comments

Comments

@michal-devel
Copy link

Question / bug report
I used ACSM Input Plugin to download ebook. It downloads the book correctly, however DeDRM fail to decrypt the file.

Which version of Calibre are you running?
5.37

Which version of the DeDRM plugin are you running?
v.10.0.3

Please have a look at log file:

DeDRM v10.0.3: Trying to decrypt ooqmsq26.pdf
DeDRM v10.0.3: ooqmsq26.pdf is a PDF ebook with encryption EBX_HANDLER
DeDRM v10.0.3: ooqmsq26.pdf is a PDF ebook (EBX) for UUID xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
DeDRM v10.0.3: Trying UUID-matched encryption key adobe_uuid_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
error writing pdf: Invalid object number: objid=3290
Traceback (most recent call last):
  File "/home/michal/.config/calibre/plugins/DeDRM.zip/ineptpdf.py", line 1820, in getobj
    obj = objs[i]
IndexError: list index out of range

I'm happy to help you investigate this issue. At first I created an issue at ACSM Input Plugin for Calibre.

@noDRM
Copy link
Owner

noDRM commented Dec 23, 2022

Hard to say without having access to both the PDF file and the decryption key. Can you try this test version and see if that works?

DeDRM_plugin_test_233.zip

If it doesn't, I'd need to have the PDF and the key file to take a closer look. If you're willing to share these, my email is on my Github profile.

@michal-devel
Copy link
Author

michal-devel commented Dec 23, 2022 via email

@michal-devel
Copy link
Author

I has worked flawlessly! I tested the updated plugin on three PDFs and it worked without any problems.

@noDRM noDRM closed this as completed in a711954 Dec 29, 2022
@noDRM
Copy link
Owner

noDRM commented Dec 29, 2022

Thanks for confirming, I've added that bugfix to the repository.

@teerapap
Copy link

I also want to confirm that v10.0.9 solves this problem.
Thanks a lot for the fix. 😃

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

No branches or pull requests

3 participants