generate EPUB3
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/EPUB3
t
.gitignore
.travis.yml
Build.PL
Changes
LICENSE
META.json
README.md
cpanfile

README.md

NAME Build Status

EPUB3::Builder - generate EPUB3 file

SYNOPSIS

use EPUB3::Builder;
my $builder =  EPUB3::Builder->new;

# set metadata
my $metadata = $builder->opf->metadata;
$metadata->author('author');
$metadata->title('title');
$metadata->lang('ja'); #default is en
$metadata->dir('ltr'); #default is ltr
$metadata->modified('2013-04-22T08:58:17Z'); #default is current gmtime

# add book items
$builder->multi_set({
    cover_image => "cover.png",
    navi        => "nav.xhtml",
});

$builder->multi_add({
    document => [
        "cover.xhtml",
        "1.xhtml",
        "2.xhtml",
    ],
    item => [
        "test.png",
        "style.css",
    ],
});

$builder->output({ path => 'myBook.epub' });

DESCRIPTION

Build OEBPS/content.opf and META-INF/container.xml, mimetype from your book content.
And create Zip archive.

LICENSE

Copyright (C) tokubass.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

tokubass