-
-
26 Sep 2015 09:11:16 UTC
- Distribution: EBook-MOBI
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (682 / 0 / 0)
- Kwalitee
Bus factor: 1- 46.99% Coverage
- License: artistic_2
- Activity
24 month- Tools
- Download (324.73KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
Some POD
Some text.
Some Pictures
An image.
An image which has been resized.
A List
First item.
Second item.
That's it
The end.
END
my $book = EBook::MOBI->new();
# let's define a debug sub witch will be used by all modules sub debug { my ($package, $filename, $line) = caller; print "$package\t$_[0]\n"; }
# pass the reference of the sub to our book $book->debug_on(\&debug);
# fill the book with meta info $book->set_filename('Simple.mobi'); $book->set_title ('A Test: Simple'); $book->set_author ('Boris'); $book->set_encoding(':encoding(UTF-8)');
# fill the book with content $book->add_mhtml_content(" <h1>A Test Titlepage</h1><p>Very simple...</p>"); $book->add_pagebreak(); $book->add_toc_once(); $book->add_pagebreak(); $book->add_content(data => $pod, pagemode => 1);
$book->make(); #$book->print_mhtml(); $book->save();
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 15:
Unknown directive: =image
Module Install Instructions
To install EBook::MOBI, copy and paste the appropriate command in to your terminal.
cpanm EBook::MOBI
perl -MCPAN -e shell install EBook::MOBI
For more information on module installation, please visit the detailed CPAN module installation guide.