asido / epubsharp Goto Github PK
View Code? Open in Web Editor NEWC# library for reading EPUB file format
License: Mozilla Public License 2.0
C# library for reading EPUB file format
License: Mozilla Public License 2.0
Hi, I want to use your library in one of my wpf application. Can you share code to display epub in wpf web browser control.. please ?
Thank you for this great project. Do you have plans to still work on the EPubWriter?
Looks like a cool project that I'm keen to have a play with. Thanks for your hard work on it!
https://1drv.ms/u/s!AjG9pmUcv66_ts8zXPWPprsz8L-sug?e=NfR7fl
Throws exception System.FormatException: 'Input string was not in a correct format.'
at System.Number.StringToNumber(ReadOnlySpan1 str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(ReadOnlySpan
1 s, NumberStyles style, NumberFormatInfo info)
at System.Xml.Linq.XAttribute.op_Explicit(XAttribute attribute)
at EpubSharp.Format.Readers.NcxReader.<>c.b__0_1(XElement elem)
at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator
1.MoveNext()
at System.Collections.Generic.List1.AddEnumerable(IEnumerable
1 enumerable)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at EpubSharp.Format.Readers.NcxReader.Read(XDocument xml)
at EpubSharp.EpubReader.Read(Stream stream, Boolean leaveOpen)
at SimpleEpubReader.FileWizards.GutenbergFileWizard.d__0.MoveNext() in C:\Users\toomr\source\repos\SimpleEpubReader\SimpleEpubReader\FileWizards\GutenbergFileWizard.cs:line 50
This is somewhat random ebook I grabbed in order to test your library in my new ebook reader. So far, most ebooks area read by your library perfectly (testing includes books from the UN, USDA, NASA, Project Gutenberg and archive.org, plus others as I find them)
Other ebook readers (Nook and Freda) can read it OK.
Trying to install via nuget a receive the following error
Install-Package : Could not install package 'EpubSharp.dll 1.1.5'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible
with that framework. For more information, contact the package author.
At line:1 char:1
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Hi Asido,
OK - so I've started using your library; and would like to make some improvements.
But I need Visual Studio 2015 installed on my computer.
Is there a way I can open the project in VS 2015..?
I am trying to parse an EPUB 3.0.1 which successfully validates using EpubCheck version 4.0.2.
EpubReader.Read() throws on line 41 of NcxReader.cs.
Value = (int?)elem.Attribute(NcxPageTarget.Attributes.Value)
I cannot share the book but the content of the element is as follows. As you can see, the value of the attribute is "i" and not an integer.
<pageTarget id="navPoint43" type="normal" value="i" xmlns="http://www.daisy.org/z3986/2005/ncx/">
<navLabel>
<text>i</text>
</navLabel>
<content src="xhtml/02_Title_Page.xhtml#page_i" />
</pageTarget>
Stack trace:
Unhandled Exception: System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(ReadOnlySpan`1 str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(ReadOnlySpan`1 s, NumberStyles style, NumberFormatInfo info)
at System.Int32.Parse(String s, NumberStyles style, IFormatProvider provider)
at System.Xml.XmlConvert.ToInt32(String s)
at System.Xml.Linq.XAttribute.op_Explicit(XAttribute attribute)
at EpubSharp.Format.Readers.NcxReader.<>c.<Read>b__0_1(XElement elem)
at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.ToList()
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at EpubSharp.Format.Readers.NcxReader.Read(XDocument xml)
at EpubSharp.EpubReader.Read(Stream stream, Boolean leaveOpen)
The books parses without exceptions if NcxPageTarget.Value is changed to a string.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.