noDRM / DeDRM_tools

DeDRM tools for ebooks
7.15k stars 321 forks source link

Fail to open a DRM protected PDF. #306

Open bvolz1 opened 1 year ago

bvolz1 commented 1 year ago

Question / bug report

No response

Which version of Calibre are you running?

6.14.1.0

Which version of the DeDRM plugin are you running?

10.0.3

If applicable, which version of the Kindle software are you running?

No response

Log output

Paste log output here.

ApplicationPaletteChange event ignored Using calibre Qt style: True calibre Debug log calibre 6.14.1 embedded-python: True Windows-10-10.0.22621-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.22621') Python 3.10.1 Windows: ('10', '10.0.22621', 'SP0', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: DeDRM (10, 0, 3) && Obok DeDRM (10, 0, 3) calibre 6.14.1 embedded-python: True Windows-10-10.0.22621-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.22621') Python 3.10.1 Windows: ('10', '10.0.22621', 'SP0', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: DeDRM (10, 0, 3) && Obok DeDRM (10, 0, 3) QPA platform: windows devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 96.0 x 95.9160839160839 [0.00] Starting up... [0.00] Showing splash screen... [0.16] splash screen shown [0.16] Initializing db... [0.16] db initialized [0.16] Constructing main UI... DEBUG: 0.0 obok::utilities.py - loading translations DEBUG: 0.0 obok::dialogs.py - loading translations DEBUG: 0.0 obok::config.py - loading translations DEBUG: 0.0 obok::action_err.py - loading translations [0.48] main UI initialized... [0.48] Hiding splash screen Starting QuickView DeDRM v10.0.3: Trying to decrypt B16-1_2020.pdf DeDRM v10.0.3: B16-1_2020.pdf is a PDF ebook with encryption FOPN_foweb DeDRM v10.0.3: FileOpen encryption 'FOPN_foweb' is unsupported. DeDRM v10.0.3: Try the standalone script from the 'Tetrachroma_FileOpen_ineptpdf' folder in the Github repo. DeDRM v10.0.3: Finished after 0.1 seconds Traceback (most recent call last): File "calibre\customize\ui.py", line 469, in get_file_type_metadata File "calibre\customize\builtins.py", line 324, in get_metadata File "calibre\ebooks\metadata\pdf.py", line 124, in get_metadata ValueError: Could not read info dict from PDF Syntax Error: Couldn't find the 'FOPN_foweb' security handler pdfinfo errored out with return code: 1 [8.92] splash screen hidden [8.92] Started up in 8.92 seconds with 1 books stdout+stderr from file dialog helper: [b'', b''] piped data from file dialog helper: [b'zc\xe2^\x0b\xa0n\x06\xd6\xd6-\x85\xa6]\xf28A\x11\x99\xda_t\xdd\xd2x\x01\xa6Yo\x10K\xae', b'V:\Standards\ASME B16.1 - 2020 - Gray Iron Pipe Flanges and Flanged Fittings Classes 25, 125, and 250\B16-1_2020.pdf'] Added B16-1 2020 to db in: 0.1 Added 1 books in 0.7 seconds

ElleKayEm commented 1 year ago

The plugin does not support this. But there is a python script which works with it. Some discussion of it here: https://github.com/noDRM/DeDRM_tools/issues/157

(I don't have any experience using that myself.)

bvolz1 commented 1 year ago

Much appreciated!

I was able to get further into the script that is supposed to work for that, and got it to successfully decrypt the test file, but the file I am trying to decrypt runs into an EOR failure. I have attached the debug txt file from the failure. I have the correct build number in and am on the machine with opening rights.

This is the thread I followed - https://www.reddit.com/r/Piracy/comments/118regj/how_to_open_a_pdf_which_has_fileopen_drm_and_to/ Test file that it will decrypt - https://www.techstreet.com/direct/www-spdf-test.pdf

Cheers!

On Fri, Mar 24, 2023 at 12:06 PM ElleKayEm @.***> wrote:

The plugin does not support this. But there is a python script https://github.com/noDRM/DeDRM_tools/tree/master/Other_Tools/Tetrachroma_FileOpen_ineptpdf which works with it. Some discussion of it here: #157 https://github.com/noDRM/DeDRM_tools/issues/157

(I don't have any experience using that myself.)

— Reply to this email directly, view it on GitHub https://github.com/noDRM/DeDRM_tools/issues/306#issuecomment-1483052564, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSRR7P7XN5XXE2CTO6IEDTW5XBA5ANCNFSM6AAAAAAWGW6DQ4 . You are receiving this because you authored the thread.Message ID: @.***>

ineptpdf-8.4.51-debug.txt