Roler.Toolkit.File.Epub 1.0.0

.NET Standard Class Library for Epub File. support EPUB 3.0

Install-Package Roler.Toolkit.File.Epub -Version 1.0.0
dotnet add package Roler.Toolkit.File.Epub --version 1.0.0
<PackageReference Include="Roler.Toolkit.File.Epub" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Roler.Toolkit.File.Epub --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
using (var epubReader = new EpubReader(stream))
{
    if (epubReader.TryRead(out Epub epub))
    {
        var title = epub.Title;
        var creator = epub.Creator;
        var publisher = epub.Publisher;
        var description = epub.Description;
        //...

        ContentFile cover = epub.Cover;
        IList<Chapter> chapters = epub.Chapters;
        IList<ContentFile> allFiles = epub.AllFiles;
        IList<ContentFile> ReadingFiles = epub.ReadingFiles;    //Ordered files for read.

        Structure structure = epub.Structure;   //Structure inside epub file.
        float version = structure.Package.Version;  //The version of epub file.

        Stream coverStream = epubReader.ReadContentFile(cover.FilePath);    //read content file by file path.
    }
}
using (var epubReader = new EpubReader(stream))
{
    if (epubReader.TryRead(out Epub epub))
    {
        var title = epub.Title;
        var creator = epub.Creator;
        var publisher = epub.Publisher;
        var description = epub.Description;
        //...

        ContentFile cover = epub.Cover;
        IList<Chapter> chapters = epub.Chapters;
        IList<ContentFile> allFiles = epub.AllFiles;
        IList<ContentFile> ReadingFiles = epub.ReadingFiles;    //Ordered files for read.

        Structure structure = epub.Structure;   //Structure inside epub file.
        float version = structure.Package.Version;  //The version of epub file.

        Stream coverStream = epubReader.ReadContentFile(cover.FilePath);    //read content file by file path.
    }
}

  • .NETStandard 2.0

    • No dependencies.

Version History

Version Downloads Last updated
1.0.0 68 4/26/2019