Quote:
Originally Posted by thianliongpatpoh
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