1EBook::EPUB::Container:U:sZeirp(C3o)ntributed Perl DocumEeBnotoakt:i:oEnPUB::Container::Zip(3)
2
3
4
6 EBook::EPUB::Container::Zip
7
9 Zip OEPBS Container implementation
10
11 my $container = EBook::EPUB::Container::Zip->new('/path/to/file.epub')
12
13 # EBook::EPUB::Container methods
14 $container->add_path('/path/to/content.ncx', 'DATA/content.nx');
15 $container->add_path('/path/to/page1.xhtml', 'DATA/page1.xhtml');
16 $container->add_path('/path/to/page2.xhtml', 'DATA/page2.xhtml');
17 $container->add_root_file('DATA/content.ncx');
18
19 # Write it to disk
20 $container->write();
21
23 new($zipfile)
24 Create new instance of EBook::EPUB::Container::Zip object. $zipfile
25 is a file where container should be saved
26
27 write()
28 Create zip file with container contents
29
31 Oleksandr Tymoshenko, <gonzo@bluezbox.com>
32
34 Please report any bugs or feature requests to <gonzo@bluezbox.com>
35
37 Copyright 2009, 2010 Oleksandr Tymoshenko.
38
39 <http://bluezbox.com>
40
41 This module is free software; you can redistribute it and/or modify it
42 under the terms of the BSD license. See the LICENSE file included with
43 this distribution.
44
45
46
47perl v5.30.0 2019-07-26 EBook::EPUB::Container::Zip(3)