View Single Post
Old 02-25-2009, 01:18 PM   #19
delphidb96
Wizard
delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.
 
Posts: 2,999
Karma: 300001
Join Date: Jan 2007
Location: Citrus Heights, California
Device: TWO Kindle 2s, one each Bookeen Cybook Gen3, Sony PRS-500, Axim X51V
Quote:
Originally Posted by thianliongpatpoh View Post
done those. i even has been able to do pdb-html-pdb with mswors macro and dropbook. just want to skip the html step. i just lack the knowhow to edit the .py to stop the process at the decrypting stage, and spot out un-drmed .pdb
There are two sections specifically involved. First, convertEreaderToHTML class runs both the EreaderProcessor section which decrypts the .pdb as well as the extraction sections (one set of code that extracts and writes the images and the PMLConverter class that creates an HTML file) so if you strip out those parts of convertEreaderToHTML which extract the images and write the HTML part, you 'should' be able to write out the decrypted .pdb to a new file. I'm not sure, but I think that the EreaderProcessor class processes each block of encrypted .pdb data separately, so you'd just have to take the extracted header info, write it to a memory stream, append the decrypted data blocks and then write the whole memory file to an output file.

Derek
delphidb96 is offline   Reply With Quote