the file name of the final package. This is based on the short name of the document, or the name provided in the configuration file.
Returns the underlying ZIP container; this is used when creating a "collection", ie, when the the final content is generated from several zip containers.
Return the name of the final file, as provided at constructor time. This is based on the short name of the document, or the name provided in the configuration file.
Store a compressed content in the OCF file. The input can be a simple text or a Stream
(the relevant archiver
function takes care of disambiguation).
Content to be stored
Path name of the file for the content
Return the final content of the book all packed up.
If not yet done, the content is generated using the relevant jszip
function, packaging all content that has been added.
The class representing the EPUB 3.3 OCF package.
Simple wrapper around the JSZip package to create an OCF specific packaging for EPUB. The constructor generates and adds the required content files, as described in the EPUB Specification, namely:
mimetype
filecontainer.xml
file, see the value in container_xml.Both of these files are stored uncompressed.