EPUB::Parser::File::OPF - parses opf file
use EPUB::Parser; my $ep = EPUB::Parser->new->load_file({ file_path => 'sample.epub' }); my $opf = $ep->opf;
Constructor. This method called from EPUB::Parser object. $epub_parser->opf;
Returns instance of EPUB::Parser::File::Parser::OPF.
get opf file path from 'META-INF/container.xml'
get directory path of opf file. File::Basename::dirname($self->path);
get blob of opf file from loaded EPUB
Returns instance of EPUB::Parser::File::OPF::Context::Spine.
Returns instance of EPUB::Parser::File::OPF::Context::Manifest.
Returns instance of EPUB::Parser::File::OPF::Context::Metadata.
Returns instance of EPUB::Parser::File::OPF::Context::Guide.
get navigation file path from manifest.
get cover image file from manifest.
get opf version. return '3.0' if version is not found and navigation file exists.
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.