NAME
Chandra::EPUB - Epub reader built with Perl and Chandra
VERSION
Version 0.01
SYNOPSIS
Quick summary of what the module does.
Chandra::EPUB->open('mybook.epub');
...
my $book = Chandra::EPUB->new(
file => 'mybook.epub'
width => 800, # optional
height => 600, # optional
title => 'My Book', # optional
);
$book->run();
DESCRIPTION
Chandra::EPUB is an EPUB reader built with Perl and Chandra. It allows you to open and read Epub files, navigate through chapters, and customize the reading experience with optional settings such as width, height, and title.
METHODS
open
Open an EPUB file and start the reader. Same as calling new with the file and then run.
Chandra::EPUB->open('mybook.epub');
new
Instantiate a new Chandra::EPUB object. You can provide the file path to the EPUB book, as well as optional settings for width, height, and title.
my $book = Chandra::EPUB->new(
file => 'mybook.epub'
width => 800, # optional
height => 600, # optional
title => 'My Book', # optional
);
run
Run the EPUB reader application. This will open a window and display the contents of the EPUB book.
$book->run();
load_epub
Load the EPUB file and extract its contents, including CSS, chapters, and images.
my $book_data = load_epub('mybook.epub');
extract_body
Extract the inner content of the <body> tag from the given XHTML string.
my $body = extract_body($xhtml);
AUTHOR
lnation <email@lnation.org>
BUGS
Please report any bugs or feature requests to bug-chandra-epub at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Chandra-EPUB. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Chandra::EPUB
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
This software is Copyright (c) 2026 by lnation <email@lnation.org>.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)