mirror of
https://github.com/noDRM/DeDRM_tools.git
synced 2026-03-21 13:28:56 +00:00
tools v5.6.2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Inept PDF Plugin - ineptpdf_v01.9_plugin.zip
|
||||
Inept PDF Plugin - ineptpdf_v02.0_plugin.zip
|
||||
============================================
|
||||
|
||||
All credit given to i♥cabbages for the original standalone scripts. I had the much easier job of converting them to a Calibre plugin.
|
||||
@@ -9,7 +9,7 @@ This plugin is meant to decrypt Adobe Digital Edition PDFs that are protected wi
|
||||
Installation
|
||||
------------
|
||||
|
||||
Do **NOT** select "Get plugins to enhance calibre" as this is reserved for "official" calibre plugins, instead select "Change calibre behavior" to go to Calibre's Preferences page. Under "Advanced" click on the Plugins button. Use the "Load plugin from file" button to select the plugin's zip file (ineptpdf_v01.9_plugin.zip) and click the 'Add' button. Click 'Yes' in the the "Are you sure?" dialog. Click OK in the "Success" dialog.
|
||||
Do **NOT** select "Get plugins to enhance calibre" as this is reserved for "official" calibre plugins, instead select "Change calibre behavior" to go to Calibre's Preferences page. Under "Advanced" click on the Plugins button. Use the "Load plugin from file" button to select the plugin's zip file (ineptpdf_v02.0_plugin.zip) and click the 'Add' button. Click 'Yes' in the the "Are you sure?" dialog. Click OK in the "Success" dialog.
|
||||
|
||||
|
||||
Customization
|
||||
@@ -54,7 +54,7 @@ Paste the information into a comment at my blog, http://apprenticealf.wordpress.
|
||||
Linux and Adobe Digital Editions PDFs
|
||||
--------------------------------------
|
||||
|
||||
Here are the instructions for using the tools with ePub books and Adobe Digital Editions on Linux under Wine. (Thank you mclien and Fadel!)
|
||||
Here are the instructions for using the tools with PDF books and Adobe Digital Editions on Linux under Wine. (Thank you mclien and Fadel!)
|
||||
|
||||
|
||||
1. download the most recent version of wine from winehq.org (1.3.29 in my case)
|
||||
@@ -105,9 +105,9 @@ cd ~/.wine/drive_c/tools_vX.X/Other_Tools/
|
||||
‘wine python ineptkey.py’ (only need once!)
|
||||
(key will be here: ~/.wine/drive_c/tools_vX.X/Other_Tools/adeptkey.der)
|
||||
|
||||
9. Use ADE running under Wine to dowload all of your purchased ePub ebooks
|
||||
9. Use ADE running under Wine to dowload all of your purchased PDF ebooks
|
||||
|
||||
10. install the ineptepub and ineptpdf plugins from the tools as discribed in the readmes.
|
||||
10. install the ineptpdf plugins from the tools as discribed in the readmes.
|
||||
|
||||
11. copy the adeptkey.der into the config dir of calibre (~/.config/calibre in debian). Your ADE books imported to calibre will automatically be freed from DRM.
|
||||
|
||||
|
||||
Binary file not shown.
@@ -59,14 +59,15 @@ __license__ = 'GPL v3'
|
||||
# 0.1.6 - Fix for potential problem with PyCrypto
|
||||
# 0.1.7 - Fix for potential problem with ADE keys and fix possible output/unicode problem
|
||||
# 0.1.8 - Fix for code copying error
|
||||
# 0.1.9 - Major code change to use unaltered ineptepub.py
|
||||
# 0.1.9 - Major code change to use unaltered ineptpdf.py
|
||||
# 0.2.0 - Fix erroneous dependency on ineptepub plugin
|
||||
|
||||
"""
|
||||
Decrypts Adobe ADEPT-encrypted PDF files.
|
||||
"""
|
||||
|
||||
PLUGIN_NAME = u"Inept PDF DeDRM"
|
||||
PLUGIN_VERSION_TUPLE = (0, 1, 9)
|
||||
PLUGIN_VERSION_TUPLE = (0, 2, 0)
|
||||
PLUGIN_VERSION = u'.'.join([str(x) for x in PLUGIN_VERSION_TUPLE])
|
||||
|
||||
import sys
|
||||
@@ -151,7 +152,7 @@ class IneptPDFDeDRM(FileTypePlugin):
|
||||
warnings.filterwarnings('ignore', category=FutureWarning)
|
||||
|
||||
# ADE key retrieval script included in respective OS folder.
|
||||
from calibre_plugins.ineptepub.ineptkey import retrieve_keys
|
||||
from calibre_plugins.ineptpdf.ineptkey import retrieve_keys
|
||||
try:
|
||||
keys = retrieve_keys()
|
||||
for i,key in enumerate(keys):
|
||||
|
||||
@@ -15,10 +15,10 @@ from __future__ import with_statement
|
||||
# from <http://www.python.org/download/> and PyCrypto from
|
||||
# <http://www.voidspace.org.uk/python/modules.shtml#pycrypto> (make sure to
|
||||
# install the version for Python 2.6). Save this script file as
|
||||
# ineptepub.pyw and double-click on it to run it.
|
||||
# ineptpdf.pyw and double-click on it to run it.
|
||||
#
|
||||
# Mac OS X users: Save this script file as ineptepub.pyw. You can run this
|
||||
# program from the command line (pythonw ineptepub.pyw) or by double-clicking
|
||||
# Mac OS X users: Save this script file as ineptpdf.pyw. You can run this
|
||||
# program from the command line (pythonw ineptpdf.pyw) or by double-clicking
|
||||
# it when it has been associated with PythonLauncher.
|
||||
|
||||
# Revision history:
|
||||
@@ -49,13 +49,14 @@ from __future__ import with_statement
|
||||
# 7.10 - Various tweaks to fix minor problems.
|
||||
# 7.11 - More tweaks to fix minor problems.
|
||||
# 7.12 - Revised to allow use in calibre plugins to eliminate need for duplicate code
|
||||
# 7.13 - Fixed erroneous mentions of ineptepub
|
||||
|
||||
"""
|
||||
Decrypts Adobe ADEPT-encrypted PDF files.
|
||||
"""
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__version__ = "7.12"
|
||||
__version__ = "7.13"
|
||||
|
||||
import sys
|
||||
import os
|
||||
@@ -115,7 +116,7 @@ def unicode_argv():
|
||||
start = argc.value - len(sys.argv)
|
||||
return [argv[i] for i in
|
||||
xrange(start, argc.value)]
|
||||
return [u"ineptepub.py"]
|
||||
return [u"ineptpdf.py"]
|
||||
else:
|
||||
argvencoding = sys.stdin.encoding
|
||||
if argvencoding == None:
|
||||
|
||||
Reference in New Issue
Block a user