As we all know .epub
is a collection of files. Does anyone have an idea how can we read all that files embed in .epub
runtime using C#
?
The ePub specification supports two formats, a collection of files or a package of files. Most epub's use the packaging. The package is simply a ZIP file with a renamed extension.
The specification can be found here. The OEBPS Container wraps around an ePub version of the Open Packaging Format.
The simplest way to read the content is to unzip the files and look at the xhtml files that were embedded within it.
It is a zip file so how about using the Compression namespace to read the contents. Haven't use it but I'm sure this namespace exposes classes to read zip files as a stream.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With