Epub or Mobi Sdk for xamarin [closed]
Asked Answered
A

3

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 ?

Amaya answered 22/12, 2014 at 9:29 Comment(4)
did you get anything on it?Prominent
@Prominent no.There are some Nuget for epub. I am yet to explore them.Amaya
Thank you for the updates. Please share the findings. I am also looking into it. If I will receive something from my end, will let you know.Prominent
@DevaPalanisamy : did you get anything for E Readers for XamarinChavis
N
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); 
Nacred answered 6/6, 2017 at 16:33 Comment(10)
Does this work for xamarin.android or Xamarin.ios? Thank you.Indiraindirect
@IshworKhanal Sure. It works for Xamarin.Android and Xamarin.iOS as well. Just try to install the package to your projects.Nacred
Can I use this without MVVM framework in xamarin.android? Because the app I have built is without MVVM framework. Thank you.Indiraindirect
@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)Nacred
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 readIndiraindirect
@IshworKhanal Correct.Nacred
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?Indiraindirect
@IshworKhanal Yes, it has only reading epub files feature. UI features are more platform specific things.Nacred
does it support pdf or only epub file to read??Indiraindirect
@IshworKhanal Unfortunately, only ePubNacred
G
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
Gardner answered 17/12, 2016 at 10:58 Comment(0)
M
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.

Misha answered 7/3, 2019 at 9:20 Comment(1)
Please don't just post some links or library as an answer. At least demonstrate how it solves the problem in the answer itself.Gurango

© 2022 - 2024 — McMap. All rights reserved.