Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Other discussions > Removing DRM protection from eBooks
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #11  
Old 04-12-2010, 04:12 AM
any ANONYMOUS forum user any ANONYMOUS forum user is offline
any user of the forum who preferred to post anonymously
 
Join Date: Aug 2011
Location: Server of stream-recorder.com
Posts: 211
any ANONYMOUS forum user is on a distinguished road
Default

Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for Kindl


How to remove DRM from Topaz ebooks:
  1. Install Python
  2. Open command prompt / terminal and run:

    Code:
    python cmbtc_dump_nonK4PC.py -d -o TARGETDIR -p 12345678 YOURTOPAZBOOKNAMEHERE
    where
    - 12345678 - the first 8 characters of your PID
    - "TARGETDIR" - target directory (can be ommited)
    - YOURTOPAZBOOKNAMEHERE - filename of your Topaz ebook (with the .tpz extension)
  3. Then, again in the command prompt / terminal, run:

    Code:
    python gensvg.py TARGETDIR
  4. Then create HTML file from the SVG file by running the following in the command line / terminal:

    Code:
    python genhtml.py TARGETDIR
    You should get "book.html" file in the TARGETDIR directory.
  5. Convert "book.html" to any other format using Calibre.
Reply With Quote
  #12  
Old 04-12-2010, 04:35 PM
jcklaus jcklaus is offline
Junior Member
 
Join Date: Apr 2010
Posts: 7
jcklaus is on a distinguished road
Default

Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for Kindl


Running Mac OS X Terminal and using the command line:

python TopazFiles2HTML.pyw MYTOPAZBOOKNAME
Reply With Quote
  #13  
Old 04-13-2010, 12:43 AM
Stream Recorder
 
Posts: n/a
Default

Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for Kindl


Quote:
Originally Posted by jcklaus View Post
Running Mac OS X Terminal and using the command line:

python TopazFiles2HTML.pyw MYTOPAZBOOKNAME
The files in the lib directory are used by the script. Make sure to extract the lib directory with the other scripts.

From my understanding, you need to run
1. TopazExtract_Kindle_iPhone.pyw
2. then run TopazFiles2XML.pyw,
3. and then run either TopazFiles2SVG.pyw or TopazFiles2HTML.pyw
May be I'm wrong. I don't have a Kindle to check it out.

You can also try to run cmbdtc.py on your Topaz ebook
Code:
cmbtc_dump.py -d -o TARGETDIR [-p pid] YOURTOPAZBOOKNAMEHERE
and see whether you get any errors.
Reply With Quote
  #14  
Old 04-30-2010, 12:14 PM
Maradona10 Maradona10 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 1
Maradona10 is on a distinguished road
Default

Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for Kindl


Quote:
Originally Posted by Stream Recorder View Post
The following set of tools can also be used to remove DRM from Amazon Topaz eBooks:
  • TopazExtract_Kindle_iPhone.pyw,
  • TopazFiles2XML.pyw,
  • TopazFiles2SVG.pyw,
  • TopazFiles2HTML.pyw

tools_v1.6b.zip.
Code:
http://www.mediafire.com/?mn3vmttbwrt
The scripts should work with Kindle and iPhone Amazon Topaz Files (.tpz, .azw1). The files are really images of pages with OCR performed on them. Using the tools you can get SVG images of the pages, and the OCRed HTML version for clean-up.
I have downloaded these scripts. But can you please explain how to execute them properly and in which order? Cause I'm new to python. I have a topaz book on my iphone and want to convert it, but don't know how.

Any help appreciated.
Reply With Quote
  #15  
Old 05-01-2010, 07:03 PM
jcklaus jcklaus is offline
Junior Member
 
Join Date: Apr 2010
Posts: 7
jcklaus is on a distinguished road
Default

Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for Kindl


Quote:
Originally Posted by Stream Recorder View Post
The files in the lib directory are used by the script. Make sure to extract the lib directory with the other scripts.

From my understanding, you need to run
1. TopazExtract_Kindle_iPhone.pyw
2. then run TopazFiles2XML.pyw,
3. and then run either TopazFiles2SVG.pyw or TopazFiles2HTML.pyw
May be I'm wrong. I don't have a Kindle to check it out.

You can also try to run cmbdtc.py on your Topaz ebook
Code:
cmbtc_dump.py -d -o TARGETDIR [-p pid] YOURTOPAZBOOKNAMEHERE
and see whether you get any errors.
Whenever I try the first step of running TopazExtract_Kindle_Iphone.pyw I get the following error message:

File "./lib/cmbtc_dump_nonK4PC.py", line 517, in <module>
sys.exit(main())
File "./lib/cmbtc_dump_nonK4PC.py", line 478, in main
bookFile = openBook(args[0])
File "./lib/cmbtc_dump_nonK4PC.py", line 57, in openBook
raise CMBDTCFatal("Could not open book file: " + path)
__main__.CMBDTCFatal: Could not open book file:
Reply With Quote
  #16  
Old 05-02-2010, 02:31 AM
Stream Recorder
 
Posts: n/a
Default

Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for Kindl


Quote:
Originally Posted by jcklaus View Post
Whenever I try the first step of running TopazExtract_Kindle_Iphone.pyw I get the following error message:

File "./lib/cmbtc_dump_nonK4PC.py", line 517, in <module>
sys.exit(main())
File "./lib/cmbtc_dump_nonK4PC.py", line 478, in main
bookFile = openBook(args[0])
File "./lib/cmbtc_dump_nonK4PC.py", line 57, in openBook
raise CMBDTCFatal("Could not open book file: " + path)
__main__.CMBDTCFatal: Could not open book file:
Are you trying to remove DRM from Topaz book? Or mobipocket book?
Reply With Quote
  #17  
Old 05-02-2010, 08:20 AM
jcklaus jcklaus is offline
Junior Member
 
Join Date: Apr 2010
Posts: 7
jcklaus is on a distinguished road
Default

Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for Kindl


I'm trying to remove DRM from my Topaz azw1 files to eventually convert to epub
Reply With Quote
  #18  
Old 06-01-2010, 08:13 AM
yankgirl013 yankgirl013 is offline
Junior Member
 
Join Date: May 2010
Posts: 1
yankgirl013 is on a distinguished road
Default

Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for Kindl


Hi, I'm hoping someone can help me here. I'm trying to remove a DRM off a topaz file and I'm not getting anywhere. I'm using a Mac OS.
I've downloaded all the files listed, but I keep getting a 'Can not find dict0000.dat file' error.

Is there a way we can 'dumb' the directions down? I've removed them from azw and mobi using terminal and python scripts.

Thanks so much!!!

It really doesn't matter what I convert it to, I can just change it to epub using calibre
Reply With Quote
  #19  
Old 06-01-2010, 12:30 PM
any ANONYMOUS forum user any ANONYMOUS forum user is offline
any user of the forum who preferred to post anonymously
 
Join Date: Aug 2011
Location: Server of stream-recorder.com
Posts: 211
any ANONYMOUS forum user is on a distinguished road
Default

Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for Kindl


Quote:
Originally Posted by yankgirl013 View Post
I keep getting a 'Can not find dict0000.dat file' error.
Not sure whether it will help

Quote:
Originally Posted by some updates
That means it can’t find your dict0000.dat file which should be right where you are.

This can not be the true error since other pages worked.

Please make sure that all of these are in the some location (i.e. side by side inside of TARGETDIR

convert2xml.py
dict0000.dat
pageNNNN.dat

where NNNN is the number of the problem page*.dat file

Then make sure you have cd to the TARGETDIR and then run

convert2xml.py -d dict0000.dat pageNNNN.dat > debug.txt

where again the NNNN is the number of the page file that does not work.

Then look in debug.txt for “Unknown” or any other warning or error message and post at http://darkreverser.wordpress.com/2008/02/13/new-blog/ what it says around that point in the debug.txt file.
Reply With Quote
  #20  
Old 06-09-2010, 07:24 PM
djpyle djpyle is offline
Junior Member
 
Join Date: Jun 2010
Location: Springfield, MO
Posts: 5
djpyle is on a distinguished road
Default

Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for Kindl


Quote:
Originally Posted by jcklaus View Post
Whenever I try the first step of running TopazExtract_Kindle_Iphone.pyw I get the following error message:

File "./lib/cmbtc_dump_nonK4PC.py", line 517, in <module>
sys.exit(main())
File "./lib/cmbtc_dump_nonK4PC.py", line 478, in main
bookFile = openBook(args[0])
File "./lib/cmbtc_dump_nonK4PC.py", line 57, in openBook
raise CMBDTCFatal("Could not open book file: " + path)
__main__.CMBDTCFatal: Could not open book file:
I'm getting this same error trying to remove DRM from a .tpz file. Any ideas? I'm running OSX 10.6.3.

If I try to run it without the PID, I get:

Traceback (most recent call last):
File "./lib/cmbtc_dump.py", line 37, in <module>
from ctypes import windll, c_char_p, c_wchar_p, c_uint, POINTER, byref, \
ImportError: cannot import name windll

Error: File Extraction Failed
Reply With Quote
Reply Post New Thread
Tags: , , , , , , , , , , , , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 08:48 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons