I am engaged in preparing an application regarding reading the .epub files in iPhone. Where can I get the reference for sample applications for unzipping and parsing the files? Can anyone guide me with a best link? Thank you in advance.
I am engaged in preparing an application regarding reading the .epub files in iPhone.
Share
On top of Ole’s answer (that’s a pretty good how-to guide), it’s definitely worth reading the specification for the Open Container Format (OCF) – sorry it’s a word file. It’s the formal specification for the for zip structure used.
In brief you parse the file by
full-pathattribute of the firstrootfileelement in it.full-pathattribute is a URL relative to the root of zip file)spineelement which will list all content files in reading order.If you want to do it right, you should probably also handle DTBook content as well.
If you want to do this right, you need to read and understand the Open Packaging Format (OPF) and Open Publication Structure (OPS) specifications as well.