NAME
EBook::MOBI::Mhtml2Mobi- Create a Mobi ebook by packing MOBI-ready HTML.
SYNOPSIS
use EBook::MOBI::Mhtml2Mobi;
my $mobi = EBook::MOBI::Mhtml2Mobi->new();
$mobi->pack($mhtml, $out_filename, $author, $title);
METHODS
pack
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 $filename
.
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/>.
AUTHOR
Boris Däppen <bdaeppen.perl@gmail.com>