EBook::...ner::Zip(3)

πŸ“¦
version 0.6 Β· 2 versions
, in fedora 43

πŸ’– 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 new EBook::EPUB::Container::Zip object, slay. πŸ’– $zipfile is 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>. πŸ˜­πŸ’Œ


Copyright 2009, 2010 Oleksandr Tymoshenko.

<http://bluezbox.com>

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