EPUB::Parser::File::OPF::Context::Manifest - parses manifest node in opf file
Get navigation file path from item element with the property 'nav'.
Get cover image path from item element with the property 'cover-image'. Valid options are:
$manifest->cover_image_path({ abs => 1 }); Get absolute path.
Retrun in the following format.
{ 'image/png' => [{ href => "cover.png", id => "_cover.png", properties => "cover-image" },{ href => "fig01.png", id => "_fig01.png" }], 'text/css' => [{ ..... }], }
{ "_cover.png" => { "media-type" => "image/png", href => "cover.png", properties => "cover-image" }, "_style.css" => { "media-type" => "text/css", href => "style.css" }, "_toc.ncx" => { "media-type" => "application/x-dtbncx+xml", href => "toc.ncx" }, "_cover.xhtml" => { "media-type" => "application/xhtml+xml", href => "cover.xhtml" }, "_nav.xhtml" => { "media-type" => "application/xhtml+xml", href => "nav.xhtml", properties => "nav" }, .... }
Returns all item path.
Returns items path with media-type specified by Regular expression.
Returns all item. The item is instance of EPUB::Parser::Util::Archive::Iterator.
Returns items with specified media-type. image/*, video/* ,audio/* . The item is instance of EPUB::Parser::Util::Archive::Iterator.
Returns items with media-type specified by Regular expression. The item is instance of EPUB::Parser::Util::Archive::Iterator.
Copyright (C) tokubass.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
tokubass <tokubass {at} cpan.org>
To install EPUB::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm EPUB::Parser
CPAN shell
perl -MCPAN -e shell install EPUB::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.