EBook::MOBI::Mhtml2Mobi- Create a Mobi ebook by packing MOBI-ready HTML.
use EBook::MOBI::Mhtml2Mobi; my $mobi = EBook::MOBI::Mhtml2Mobi->new(); $mobi->pack($mhtml, $out_filename, $author, $title);
The input parameters are the following:
$mhtml # data to put in the mobi ebook $filename # filename (with path) of the desired ebook $author # author of the ebook $title # title of the ebook
Call the method like this:
$mobi->pack($mhtml, $filename, $author, $title);
After the method call, a Mobi ebook should be found at the path you specified in
Handling of Images
If your input data ($mhtml) contains <img> tags which are pointing to images on the filesystem, these images will be stored and linked into the MOBI datafile. The images will be rescaled if necessary, according to EBook::MOBI::Image.
COPYRIGHT & LICENSE
Copyright 2012, 2013 Boris Däppen, all rights reserved.
Parts of this code are coming from MobiPerl.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Boris Däppen <email@example.com>