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)
-   -  

Remove DRM from PDB ebook from B&N (Barnes & Noble),...

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

55kevy 12-13-2010 04:12 AM

Re: Remove DRM from PDB ebook from B&N (Barnes & Noble),...


 
That is what I have done. Both the .py and the .pdb files are in the same directory, I'm running the command prompt set at the same directory, and I'm setting outdir as the same directory. So what now?

55kevy 12-13-2010 04:27 AM

Re: Remove DRM from PDB ebook from B&N (Barnes & Noble),...


 
OK - tried it one last time: command prompt set at directory where erdr2pml.py and book.pdb are and used the syntax:
Code:

erdr2pml.py book.pdb "my name" ccn
And it worked! So now I just have to tackle the other 300 titles.

Stream Recorder 12-13-2010 09:10 AM

Re: Remove DRM from PDB ebook from B&N (Barnes & Noble),...


 
Quote:

Originally Posted by 55kevy (Post 23673)
Code:

erdr2pml.py book.pdb "my name" ccn
And it worked! So now I just have to tackle the other 300 titles.

Then it is a good idea to create a batch file for that. I'm not an expert in that, but the following should work:

Code:

for %f IN (*.pdb) do call erdr2pml.py %f "name" ccn
or something like that:
Code:

for /f %%a IN ('dir /b *.pdb') do call erdr2pml.py %%a "name" ccn
The /f flag is used to return filenames (not directories).
"dir /b *.pdb" returns a bare directory listing (no filesize, attributes, etc.) with filenames that match the *.pdb pattern.
"%%a" is our variable.

stehr 02-17-2011 09:18 AM

Re: Remove DRM from PDB ebook from B&N (Barnes & Noble),...


 
I'm having trouble with this. When I enter:
erdr2pml.py a.pdb "My name" CCN
I receive the error:
File "<stdin>", line 1
SyntaxError: invalid syntax (highlighting the name of the book 'a')

I've tried renaming the files as numbers or all lowercase letters, but to no avail. What am I missing?

Thanks!

Stream Recorder 02-17-2011 10:15 AM

Re: Remove DRM from PDB ebook from B&N (Barnes & Noble),...


 
Quote:

Originally Posted by stehr (Post 25392)
I'm having trouble with this. When I enter:
erdr2pml.py a.pdb "My name" CCN
I receive the error:
File "<stdin>", line 1
SyntaxError: invalid syntax (highlighting the name of the book 'a')

I've tried renaming the files as numbers or all lowercase letters, but to no avail. What am I missing?

What version of Python do you use? If you use Python 3.x, try to use 2.x instead. Also try to use eReaderPDB2PML.pyw from the ebook DRM removal tools archive

Quote:

Originally Posted by README_eReaderPDB.txt
Barnes & Noble/Fictionwise eReader, .pdb

Barnes & Noble’s .pdb eReader format is one of the survivors from the early days of ebooks. Internally, text is marked up in PML – Palm Markup Language. This makes conversion to other formats more difficult.

Barnes and Noble .pdb ebooks use a form of Social DRM which requires information on your Credit Card Number (last 8 digits only) and the Name on the Credit card to unencrypt the book that was purchased with that credit card.

There are three scripts used to decrypt and convert eReader ebooks.

The first, eReaderPDB2PML.pyw removes the DRM and extracts the PML and images from the ebook into a folder. It’s then possible to use the free DropBook (available for Mac or Windows) to compile the PML back into a DRM-free eReader file.

The second script, Pml2HTML.pyw, converts the PML file extracted by the first script into xhtml, which can then be converted into your preferred ebook format with a variety of tools.

The last script is eReaderPDB2PMLZ.pyw and it removes the DRM and extracts the PML and images from the ebook into a zip archive that can be directly imported into Calibre.

All of these scripts are gui python programs. Python 2.X (32 bit) is already installed in Mac OSX. We recommend ActiveState's Active Python Version 2.X (32 bit) for Windows users.

Simply double-click to launch these applications and follow along.


polocanada 04-03-2011 06:37 AM

Re: Remove DRM from PDB ebook from B&N (Barnes & Noble),...


 
Worked fine. Thank you. (BTW... if you can't find images... - I couldn't initially.. they will be stored in a newly created folder called "images")..

soCal 07-09-2011 02:45 PM

Re: Remove DRM from PDB ebook from B&N (Barnes & Noble),...


 
Ok I don't have windows, but I followed along on my mac and I am familiar with linux.

I downloaded python v2xx
I also downloaded erdr2pml.py AND xpml2xhtml.py
I placed the above files into a working directory
I placed my numbered pdb file into this directory also
I opened a terminal and did the following:
cd into the working directory
then this command:
xpml2xhtml.py #####5_pdv.v1.pdb "My name" CC#######

I receive this as a result:
xpml2xhtml.py: command not found

Is there anyone who can help me with this or knows what may be wrong? Thanks a bunch!

Stream Recorder 07-12-2011 09:56 AM

Re: Remove DRM from PDB ebook from B&N (Barnes & Noble),...


 
Quote:

Originally Posted by soCal (Post 30830)
Ok I don't have windows, but I followed along on my mac and I am familiar with linux.

I downloaded python v2xx
I also downloaded erdr2pml.py AND xpml2xhtml.py
I placed the above files into a working directory
I placed my numbered pdb file into this directory also
I opened a terminal and did the following:
cd into the working directory
then this command:
xpml2xhtml.py #####5_pdv.v1.pdb "My name" CC#######

I receive this as a result:
xpml2xhtml.py: command not found

Is there anyone who can help me with this or knows what may be wrong? Thanks a bunch!

Have you tried to remove DRM with Calibre plug-ins?

kcl34 10-09-2011 05:03 AM

Re: Remove DRM from PDB ebook from B&N (Barnes & Noble),...


 
Hi Johnr267, can you please help me remove DRM from a pdb ebook for me? thanks
kcl


All times are GMT -6. The time now is 09:45 AM.