26 Sep 2015 09:11:16 UTC
- Distribution: EBook-MOBI
- Module version: 0.72
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (682 / 0 / 0)
- KwaliteeBus factor: 1
- 46.99% Coverage
- License: artistic_2
- Activity24 month
- Download (324.73KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
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
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 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>