# Python DeDRM

*https://mbrasile.com/python-dedrm.html · 2012-11-05 · Python*

I don't know at the moment if the e-readers' trend is to grow or to disappear to let smartbooks and tablets take the leadership.

What I know is that when I buy an e-book, I like to read it on every terminal I have... I hate the fact that you *should* need a windows-based PC or a Mac to use **Adobe Digital Editions** only, because this is the format that e-books market decided to use.

First of all, there is very good reader, it's called [Calibre](http://calibre-ebook.com/download) and it runs on linux. Ok, great. But what to do if your epub o pdf is locked down with **DRM**?

Luckily we have a [DeDRM tool](http://apprenticealf.wordpress.com/2012/09/10/drm-removal-tools-for-ebooks/) written in python that does *what-we-know-but-we-cannot-write* to set free the books you bought!

Just as a memo, here is the steps to follow under linux, with wine+ActivePython+Adobe Digital Editions 1.7.2 (ADE):

- you have downloaded the **acsm** file from the e-shop

- launch ADE@wine and drag&drop the acsm to let ADE download the real e-book

- press** CTRL+I** to see in which folder the e-book is downloaded

- if it's a **PDF**, launch in Other_Tools/Adobe_PDF_Tools the ineptkey@wine to retreive the keys in a file called adeptkey.der; then run in Other_Tools/Adobe_PDF_Tools the ineptepub@wine

- it it's a **ePUB**, launch in Other_Tools/Adobe_ePub_Tools the ineptkey@wine to retreive the keys in a file called adeptkey.der; then run in Other_Tools/ePUB_Fixer ePub_Fixer@wine; then run in Other_Tools/Adobe_ePub_Tools the ineptepub@wine

- in case it's in another format just read the txt readme's inside DeDRM (it's very well documented!)

You will end with your PDF clean-from-drm-crap and you can read it on a very old smartphone like my N79 with **Symbian** too!

---

Massimiliano Brasile — https://mbrasile.com/ — info@mbrasile.com
