GithubHelp home page GithubHelp logo

Comments (7)

Leseratte10 avatar Leseratte10 commented on May 15, 2024

Thanks for the report. PDFs can sometimes be a bit weird. EPUBs are easy, they're ZIP files and the DRM is handled by adding / removing an XML file to that ZIP. PDFs on the other hand are a complex binary format that only Adobe software can really 100% understand. That PDF file is probably using something weird for its encryption that my plugin doesn't yet support.

Can you send me the ACSM file and the URL you've removed from that log ("Loading book from ...") to the address <address removed> , then I'll take a look and see if I can find something.

from acsm-calibre-plugin.

michal-devel avatar michal-devel commented on May 15, 2024

I've just send you an e-mail.

from acsm-calibre-plugin.

Leseratte10 avatar Leseratte10 commented on May 15, 2024

Thanks for the full log. Can you test this version and see if that fixes the issue?

https://github.com/Leseratte10/acsm-calibre-plugin/suites/9848969646/artifacts/474757622 (c508280)

Please make a backup of your authorization before installing this (plugin settings -> Export account activation data) as this is a newer version that changes some more stuff and it's a bit experimental.

Then just install the version from that link (install the "calibre-plugin.zip", ignore the "calibre-migration-plugin.zip" file), restart Calibre, try to import the ACSM file again, and see if that works then. If that still doesn't work, please send me another mail with the new log, and with the PDF file as created by that version of the plugin.

from acsm-calibre-plugin.

michal-devel avatar michal-devel commented on May 15, 2024

Sure, please give a second.

from acsm-calibre-plugin.

michal-devel avatar michal-devel commented on May 15, 2024

Bum! It did the trick!

EDIT:

Please give a sec, I will test some other ACSM files that hadn't been successfully processed before.

EDIT2:

I checked another file. No luck this time. I'll send log and the ACSM file.

from acsm-calibre-plugin.

Leseratte10 avatar Leseratte10 commented on May 15, 2024

Quoting from the log file you've sent me:

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

My plugin seems to have created a valid PDF file but the DeDRM plugin failed to remove the DRM from the file. While this could in theory be a bug with my plugin creating an invalid PDF, this is more likely to be a bug in the DeDRM plugin so you would need to open an issue in that repository as I have nothing to do with the DeDRM plugin.

from acsm-calibre-plugin.

Leseratte10 avatar Leseratte10 commented on May 15, 2024

Looks like this was indeed a bug with the DeDRM plugin which is now fixed, so I'm going to close this issue. If it comes up again just reopen this or make a new report.

from acsm-calibre-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.