Create an EPUB 3.2, ie, an OCF file from the original content
This function is a wrapper around create_epub_from_dom:
Reference to the original document; this may have to be transformed by respec on-the-fly.
Create an OCF instance from DOM representing the original content.
All the resource entries are first collected in the in a Global.resources array, to be then added to the
package.opf
file as well as to download
the resources into the final epub result (see the last two steps above).
The url of the document (serves also as a base for all the other resources)
The DOM of the final format of the document (i.e., the original document may have gone through a respec processing...)
Convenience class, to export the internal RespecToEPUB class for the package as a whole. (This is only useful if, for some reasons, the conversion is done starting with a DOM tree, using create_epub_from_dom. In general, convert should be used).
This class is largely for internal use to the package, and the API user can mostly ignore its details.