7

I am thinking of developing Ebook reader in xamarin forms. But I could not find any Epub/Mobi reader SDK anywhere.Is there any xmarin SDK available for Ebook reader ? If it is not available , How can I develop one in xamarin ?

Deva Palanisamy
  • 143
  • 2
  • 8

3 Answers3

2

I have made a port of EpubReader for PCL projects: EpubReader.Cross. It has almost same api except you need to use streams instead paths to files. You can download the library as a package from Nuget: Install-Package EpubReader.Cross

For opening a book without loading content:

var epubBook = EpubReader.OpenBook(stream);

For reading a book:

var epubBook = EpubReader.ReadBook(stream); 
Denis Gordin
  • 806
  • 8
  • 19
  • Does this work for xamarin.android or Xamarin.ios? Thank you. – Ishwor Khanal Jul 08 '17 at 01:08
  • @IshworKhanal Sure. It works for Xamarin.Android and Xamarin.iOS as well. Just try to install the package to your projects. – Denis Gordin Jul 08 '17 at 04:45
  • Can I use this without MVVM framework in xamarin.android? Because the app I have built is without MVVM framework. Thank you. – Ishwor Khanal Jul 09 '17 at 09:34
  • @IshworKhanal Of course. This library works only in "PCL area". It doesn't have any relations with MVVM frameworks. You have only one issue, you need to convert book file to stream and put that into the library. The library doesn't know how to works with IO (because it's PCL, cross platform) – Denis Gordin Jul 09 '17 at 09:58
  • You mean, I have to first download the file in device and return its stream like ` private Stream TestStream() { Stream fs = File.OpenRead("testdocument.epub"); return fs; } EpubBook epubBook = EpubReader.ReadBook(TestStream()); ` and then use your library to read – Ishwor Khanal Jul 09 '17 at 11:56
  • @IshworKhanal Correct. – Denis Gordin Jul 09 '17 at 12:08
  • If I am not wrong, does this library have only plain epub file reading feature but not UI features like text highlighting, insertion notes, night mode etc? – Ishwor Khanal Jul 09 '17 at 12:13
  • @IshworKhanal Yes, it has only reading epub files feature. UI features are more platform specific things. – Denis Gordin Jul 09 '17 at 12:18
  • does it support pdf or only epub file to read?? – Ishwor Khanal Sep 12 '17 at 14:35
  • @IshworKhanal Unfortunately, only ePub – Denis Gordin Sep 13 '17 at 15:34
0

Just checked few nugets with following results:

  • ePub
    • epubsharp netfx3.5 - so no go for Xamarin. Besides this is only for generation of epub format
    • epubfactory PCL - this might work for Xamarin.Forms
    • epubreader I was not able to determine tartget platform. Try adding to the project
  • Mobi - none found
moljac
  • 872
  • 9
  • 12
0

You could try this one - https://epubear.scand.com/. It stands for Xamarine as well as for Android & iOS. Fairly faster than SkyEpub, not buggy and doesn't remind me of construction set with lots of unuseful features & tools. Reliable, easy to drive and the team is fast to respond in case you might need help.

  • Please don't just post some links or library as an answer. At least demonstrate how it solves the problem in the answer itself. – Bruce Mar 07 '19 at 09:53