NAME
EPUB::Parser::File::OPF - parses opf file
SYNOPSIS
use EPUB::Parser;
my $ep = EPUB::Parser->new->load_file({ file_path => 'sample.epub' });
my $opf = $ep->opf;
METHODS
new(\%opts)
Constructor. This method called from EPUB::Parser object. $epub_parser->opf;
parser
Returns instance of EPUB::Parser::File::Parser::OPF.
path
get opf file path from 'META-INF/container.xml'
dir
get directory path of opf file. File::Basename::dirname($self->path);
data
get blob of opf file from loaded EPUB
spine
Returns instance of EPUB::Parser::File::OPF::Context::Spine.
manifest
Returns instance of EPUB::Parser::File::OPF::Context::Manifest.
metadata
Returns instance of EPUB::Parser::File::OPF::Context::Metadata.
guide
Returns instance of EPUB::Parser::File::OPF::Context::Guide.
nav_path
get navigation file path from manifest.
cover_image_path
get cover image file from manifest.
guess_version
get opf version. return '3.0' if version is not found and navigation file exists.
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 <tokubass {at} cpan.org>