#39: Reversing PDB files to PML
Solved!
PDB-format eBooks are typically generated via PML (Palm Markup Language) files. I would like to reverse the process - extract the original PML document from a PDB file. Tools such as DropBook only go one-way.
Use the Perl module EBook::Tools::EReader
- yliu on April 26, 2009, 02:47 PM UTC
Best solution so far is to
1. use CPAN to install EBook::Tools::EReader
2. Either use this sample code directly in a .pl file
3. or open up a Perl interactive debugger
and drop all the my declarations from the above snippet.
You can probably whip up a quick Perl script to do this directly and print to STDOUT. Too lazy today to write that code for just this single-use case.
1. use CPAN to install EBook::Tools::EReader
2. Either use this sample code directly in a .pl file
use EBook::Tools::EReader;
my $pdb = EBook::Tools::EReader->new();
$pdb->Load('myfile-er.pdb');
my $html = $pdb->html;
my $pml = $pdb->pml;
print $pml;
3. or open up a Perl interactive debugger
perl -d -e 1
and drop all the my declarations from the above snippet.
You can probably whip up a quick Perl script to do this directly and print to STDOUT. Too lazy today to write that code for just this single-use case.
References used:
Think you've got a better solution? Help yliu out by posting your solution
HANDebooks: Ebook Converters
http://www.handebooks.com/converters/index.html - found by yliu on April 26, 2009, 02:50 PM UTC
EBook::Tools::EReader - Palm::PDB handler for manipulating the Fictionwise/PeanutPress eReader format. - search.cpan.org
http://search.cpan.org/~azed/EBook-Tools-0.4.4/lib/EBook/Tools/EReader.pm - found by yliu on April 26, 2009, 02:44 PM UTC
assuming it's unencrypted, could use a CPAN module
eReader.com: Help
https://secure.ereader.com/ereader/help/dropbook/ - found by yliu on April 26, 2009, 02:44 PM UTC
DropBook goes forward, but not back, apparently.