Project Description
epub reader for windows phone

 

#WORKS ON WP8

byte[] buffer = new byte[info.Stream.Length];
info.Stream.Read(buffer, 0, buffer.Length);

using (Epub epub = new Epub(new System.IO.MemoryStream(buffer)))
{
    Content s = epub.GetContent(epub.TOC.First().Source);               
    browser.NavigateToString(s.Body);
    
    // example: Extract
    try
    {
        epub.Extract("epubs/HeftyWater");
    }
    catch (System.IO.IOException ex)
    {
        System.Diagnostics.Debug.WriteLine(ex.ToString());
    }
}

Last edited Jun 24, 2013 at 4:08 PM by Junhua, version 7