open
fun open(bytes: ByteArray, pageWidth: Double = 400.0, pageHeight: Double = 640.0, fontSize: Double = 12.0, margin: Double = 36.0): EpubDocument
Open bytes at settings. Reads the container, the OPF and the table of contents; chapters parse and lay out when something asks for them.
Throws
when the bytes are not a readable EPUB, with a message naming the first structural failure (missing container.xml, missing OPF, empty spine, no readable documents).