How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for Kindle)Quote:
The following is experimental and it will probably not work for you but… ALSO: Please do not use any of this to steal. Theft is wrong. This is only meant to allow conversion of Topaz books for other book readers you own. Here are the steps:
One warning … this is not the best long-term solution because much of the layout is only really correct if drawn to the screen (as an svg). Until that solution exists, this should get you something that you can load into Sigil and clean up and make an ePub that you can then convert to other formats Code:
http://www.pastie.org/760591 ebook DRM removal tools archive |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlCode:
http://pastie.org/761169.txt |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlHow do you use "http://pastie.org/761169.txt"? (I've tried using unswindle but it doesn't work on topaz.)
TIA |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlI don't have a Kindle myself (or which device is necessary for Topaz e-books) but I'm a bit interested in encryption-related topics.
You need Python for this script. I'm not a Windows user anymore but there are precompiled binaries which should work fine. Download the script, start the command line and type: "python script.py filename" It accepts the following parameters: Quote:
|
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlThe following set of tools can also be used to remove DRM from Amazon Topaz eBooks:
tools_v1.6b.zip. Code:
http://www.mediafire.com/?mn3vmttbwrt |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for Kindl |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlI'm still unable to convert the files (xhtml) that I have, though the ebook itself has been stripped of DRM. I've tried merging the files with Adobe Acrobat Pro and Calibre, without success.
Can someone post the steps to do so? Thanks so much. |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlIs there anyone able to help me with an error message? I have successfully converted 3 books but am having trouble with the 4th. it strips the drm but when I go to convert it to xml I get the following error at page 256 "Error - -1501 outside of string table limits" i did some unsuccessful googling, so if anyone can help me I would appreciate it.
|
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlRunning this I keep getting the error "Can not find dict0000.dat file" What am I doing wrong? Thanks.
|
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlHow to remove DRM from Topaz ebooks:
|
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
|
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlRunning Mac OS X Terminal and using the command line:
python TopazFiles2HTML.pyw MYTOPAZBOOKNAME |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
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 |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
Any help appreciated. |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
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: |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
|
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlI'm trying to remove DRM from my Topaz azw1 files to eventually convert to epub
|
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlHi, 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 |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
Quote:
|
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
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 |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlNever mind, I got it to work using the command line.
Now my next question: is it possible to generate svg pages where the page takes up the entire screen instead of having the back, forward, and zoom in/out options? If so, you could load the xhtml pages in eCub and generate an ePub that would work perfectly in iBooks. Even with the back/forward in/out aspects, it still works well on iBooks, but those things are just taking up unnecessary space in this particular instance. I know enough to open gensvg.py in an editor, I just don't know what to take out and what to leave in. Anyone have any tips? |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
|
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
|
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
Hope that helps. Let me know if you have any problems. I'll try to help as best I can. |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
|
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
python genhtml.py TARGETDIR Where TARGETDIR is the name of your folder. You'll get an html file called book.html which you can use in calibre |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
|
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlI don't suppose somebody could PM me with the latest share where I could find the scripts, eh?
|
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlI think this may be it, I uploaded it for ya.
Code:
http://www.mediafire.com/file/4yhzqzjzjvm/tools.zip |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlIs anyone else getting an "Error - -249 outside of string table limits" with this? I get it with both the CLI and the GUI.
|
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlIf there is anyone who could please help me with the above error I would appreciate it.
I've now tried it on a 32-bit system as well, with the same results. Perhaps it's an issue with my ebook? |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
Code:
http://pastebin.com/RDERReyk |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
However, I am still getting the same error. Could you PM me or post the whole topaz tools files you are using? Thanks! |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlHelp! I accidentally obtained a Topaz e-book and, via Amazon Kindle for Mac, downloaded it. I also downloaded it to Kindle for the iPhone. I would like to convert it to an EPUB for iBooks on the iPhone. As I read through the posts in this thread, I find myself getting very confused. Exactly how do I do what I want to do?
I do know how to use the skindle app to unlock the downloaded file (using Parallels emulator software which lets me run Windows on my Mac). The result can be either a compressed .tpz file or an uncompressed one — but neither of those works with calibre! Does unlocking the original file with skindle get me any closer to the result I'm after? Some of the Python scripts mentioned here seem to assume one has a physical Kindle, for which one needs to specify the PID (whatever that is). How do I go about doing things if all I have are a Mac and an iPhone, with no PID? I get the feeling I have to convert the downloaded .tpz file to the SVG format. I have no idea what SVG means, though, or why I can't convert the .tpz file directly to an EPUB. I'd like to find out the answers to both those questions. I also think I understand that the SVG file then has to be converted to HTML, which can at last be input to calibre and converted to EPUB format. Am I right about that? Again, why not just convert the .tpz file directly to (if not EPUB) HTML? Any help anyone can give me will be much appreciated ... |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
http://stream-recorder.com/forum/sho...8&postcount=24 |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
Also, when I run TopazExtract_Kindle4PC.pyw, I get the following error: ImportError: cannot import name windll |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
Removing DRM protection from Kindle for PC ebooks using unswindle DeDRM AppleScript for Mac OS X 10.5, 10.6 |
Script bugs?I finally found the tools to try to convert a topaz book to something more portable (maybe?). The book downloaded to my PC as .azw file along with a .mbp file, but it looked like a topaz book and Skindle identified it as a topaz book. I renamed it Book.tpz for simplicity and ran the following script:
python cmbtc_dump.py -d -o Book Book.tpz I got the following result: File "cmbtc_dump.py", line 774 except Exception as message: ^ SyntaxError: invalid syntax However this script seemed to work: python cmbtc_dump_nonk4pc.py -d -o Book -p abCdeFgh Book.tpz Following the instructions, I then ran: python gensvg.py Book Which in the end resulted in the following: page0055.dat Traceback (most recent call last): File "gensvg.py", line 405, in <module> sys.exit(main('')) File "gensvg.py", line 329, in main flat_xml = convert2xml.main(pargv) File "C:\EZSkindle\Topaz\lib\convert2xml.py", line 789, in main xmlpage = pp.process() File "C:\EZSkindle\Topaz\lib\convert2xml.py", line 703, in process tag = self.procToken(self.dict.lookup(v)) File "C:\EZSkindle\Topaz\lib\convert2xml.py", line 439, in procToken subtagres.append(self.procToken(self.dict.lookup(v al))) File "C:\EZSkindle\Topaz\lib\convert2xml.py", line 439, in procToken subtagres.append(self.procToken(self.dict.lookup(v al))) File "C:\EZSkindle\Topaz\lib\convert2xml.py", line 140, in lookup print "Error - %d outside of string table limits" % val TypeError: int argument required Of course everything after that failed. Although I am an engineer, I am not a programmer. I don't know if I got a buggy version of the tools or if there is something weird about this book, or if did something wrong. I have not tried another book, as this is the only one I have unless someone can point me a free download that is definitely a topaz book that these tools have successfully been used on. |
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlQuote:
|
Re: How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for KindlNevermind, I was able to make it work. You have to run the files in this order (for a topaz prc) ...
1. TopazExtract_Kindle4PC 2. TopazFiles2SVG 3. TopazFiles2html The resulting book.html file was easily exported into Calibre with a metadata TOC intact. On a quick inspection, there may be only minor cleanups needed which I can do in Sigil. Edit: It wasn't as clean as I thought it would be. There are typical errors you get from OCR books, as this uses an OCR process to convert the books. Topaz is a crappy format, and even on K4PC the book's text doesn't look that great. One problem is that Amazon doesn't specify on its kindle books whether they are topaz format or not. So it's risky buying from them unless you ONLY want to read the book on a kindle device. In this case, for me, I could not find this title in an ebook version anyplace else. So it was worth it for me. But if I have a choice, I will always opt for a non-Amazon ebook first. |
All times are GMT -6. The time now is 10:17 PM. |