Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Removing DRM protection from eBooks (http://stream-recorder.com/forum/forumdisplay.php?f=63)
-   -  

How to convert Topaz ebooks to HTML (Remove DRM from TPZ and AZW1 books for Kindle)

(http://stream-recorder.com/forum/showthread.php?t=5426)

djpyle 06-09-2010 07:45 PM

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


 
Never 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?

djpyle 06-09-2010 07:51 PM

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


 
Quote:

Originally Posted by yankgirl013 (Post 19314)
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

You need to run cmbtc_dump.py or cmbtc_dump_nonK4PC.py first. The former if you purchased the book for Kindle for PC, the latter if you purchased it for a Kindle or iDevice. That removes the DRM. Then you can convert it using the other scripts.

jcklaus 06-12-2010 05:00 PM

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


 
Quote:

Originally Posted by djpyle (Post 19486)
Never 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?

Could you run through how you used the command line to solve the error I was getting as well? I don't understand. Thanks.

djpyle 06-12-2010 05:27 PM

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


 
Quote:

Originally Posted by jcklaus (Post 19564)
Could you run through how you used the command line to solve the error I was getting as well? I don't understand. Thanks.

  1. First instead of using the .pyw program, download the regular .py scripts discussed in the original post. I never could get the .pyw to work. You'll have to use Terminal to run the scripts. Once in Terminal, navigate to the folder containing your scripts and type:

    Code:

    python cmbtc_dump_nonK4PC.py -d -o TARGETDIR -p 12345678 YOURTOPAZBOOKNAMEHERE
    where 12345678 should be replaced by the first 8 characters of your PID. You can use something else for "TARGETDIR" if you want, but you don't have to. The only things you have to change are the PID number and the filename. Use the full file name, including the extension (eg Patient-Zero-A-Joe-Ledger-Novel.tpz).

    This will create a folder called TARGETDIR (or whatever you replaced that with) in the folder with your script.
  2. Then, still in Terminal, type:

    Code:

    python gensvg.py TARGETDIR
  3. This is where I stop because the .html the next step creates is very sloppy and doesn't retain italics, but if you want to create an .html, type:

    Code:

    python genhtml.py TARGETDIR
    This creates a "book.html" file in the TARGETDIR folder, which you can then convert to other formats as you see fit.

Hope that helps. Let me know if you have any problems. I'll try to help as best I can.

jcklaus 06-13-2010 11:51 AM

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


 
Quote:

Originally Posted by djpyle (Post 19568)
  1. First instead of using the .pyw program, download the regular .py scripts discussed in the original post. I never could get the .pyw to work. You'll have to use Terminal to run the scripts. Once in Terminal, navigate to the folder containing your scripts and type:

    Code:

    python cmbtc_dump_nonK4PC.py -d -o TARGETDIR -p 12345678 YOURTOPAZBOOKNAMEHERE
    where 12345678 should be replaced by the first 8 characters of your PID. You can use something else for "TARGETDIR" if you want, but you don't have to. The only things you have to change are the PID number and the filename. Use the full file name, including the extension (eg Patient-Zero-A-Joe-Ledger-Novel.tpz).

    This will create a folder called TARGETDIR (or whatever you replaced that with) in the folder with your script.
  2. Then, still in Terminal, type:

    Code:

    python gensvg.py TARGETDIR
  3. This is where I stop because the .html the next step creates is very sloppy and doesn't retain italics, but if you want to create an .html, type:

    Code:

    python genhtml.py TARGETDIR
    This creates a "book.html" file in the TARGETDIR folder, which you can then convert to other formats as you see fit.

Hope that helps. Let me know if you have any problems. I'll try to help as best I can.

THANK YOU! It worked! This had been driving me crazy and you completely spooked it for me.

jcklaus 06-13-2010 11:53 AM

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


 
Quote:

Originally Posted by yankgirl013 (Post 19314)
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

Another user solved this for me. You need to do one additional conversion step in the Terminal using python to turn it into an html file. Type:

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

djpyle 06-13-2010 03:40 PM

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


 
Quote:

Originally Posted by jcklaus (Post 19578)
THANK YOU! It worked! This had been driving me crazy and you completely spooked it for me.

Glad I could help.

jtchris 06-27-2010 12:20 PM

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


 
I don't suppose somebody could PM me with the latest share where I could find the scripts, eh?

maggerbee 06-28-2010 02:54 PM

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


 
I think this may be it, I uploaded it for ya.

Code:

http://www.mediafire.com/file/4yhzqzjzjvm/tools.zip

headala 06-30-2010 08:12 PM

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


 
Is anyone else getting an "Error - -249 outside of string table limits" with this? I get it with both the CLI and the GUI.


All times are GMT -6. The time now is 10:02 PM.