EBook::...ner::Zip(3)
π NAME π
EBook::EPUB::Container::Zip β bestie, it's the Zip container implementation for your EPUB, and it's giving main character energy in the <cyan>User Contributed Perl Documentation</cyan> section 3 of the manual. π
β¨ SYNOPSIS β¨
Okay so it's literally a Zip OEPBS Container implementation (yes that's exactly how it's spelled in the source, no I will not be fixing it, we do not touch the sacred text π ).
my $container = EBook::EPUB::Container::Zip->new('/path/to/file.epub')
# EBook::EPUB::Container methods
$container->add_path('/path/to/content.ncx', 'DATA/content.nx');
$container->add_path('/path/to/page1.xhtml', 'DATA/page1.xhtml');
$container->add_path('/path/to/page2.xhtml', 'DATA/page2.xhtml');
$container->add_root_file('DATA/content.ncx');
# Write it to disk
$container->write();
Look at that flow. Adding paths, setting the root file, then hitting write() and letting it cook. Obsessed. π₯
πΈ SUBROUTINES/METHODS πΈ
new($zipfile)β makes you a fresh newEBook::EPUB::Container::Zipobject, slay. π$zipfileis a file where container should be saved, so like, that's where it's gonna live, okay bestie?write()β creates the zip file with all the container contents inside. The moment of truth fr fr. β¨
π AUTHOR π
Oleksandr Tymoshenko, <gonzo@bluezbox.com> β the icon who made all this happen. π«Ά
π BUGS π
Found a bug? Got a feature request? Don't suffer in silence bestie, please report any bugs or feature requests to <gonzo@bluezbox.com>. ππ
π LICENSE AND COPYRIGHT π
Copyright 2009, 2010 Oleksandr Tymoshenko.
This module is free software; you can redistribute it and/or modify it under the terms of the BSD license. See the LICENSE file included with this distribution for the full deets. π
ngl this whole thing is iconic, go build your EPUBs, you got this π
Sign-off tea: this page comes to you courtesy of perl v5.42.0, dated 2025-07-25. πβ¨
π¦ where this page comes from
- fedora 43: perl-EBook-EPUB 0.6-39.fc43 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms