Skip to content

devlooped/epub

Icon EPUB

Lightweight read-only API for processing EPUB documents.

Version Downloads License Build

Usage

using var pub = Publication.Open(@"Samples/how-to-think-about-the-economy.epub");

Assert.Equal("How to Think about the Economy", pub.Package.Title);
Assert.Equal("en-US", pub.Package.Language);

foreach (var content in pub.Package.Navigation)
{
    XDocument doc = content.Open();

    // Useful in conjunction with Devlooped.Web for CSS-selectors
    string? title = doc.CssSelectElement("head title")?.Value;
    // ...
}

Sponsors

Clarius Org MFB Technologies, Inc. Khamza Davletov SandRock DRIVE.NET, Inc. Keith Pickford Thomas Bolon Kori Francis Reuben Swartz Jacob Foshee Eric Johnson Jonathan Ken Bonny Simon Cropp agileworks-eu Zheyu Shen Vezel ChilliCream 4OTC domischell Adrian Alonso torutek mccaffers Seika Logiciel Andrew Grant Lars prime167

Sponsor this project

Learn more about GitHub Sponsors

About

A lightweight library that implements EPUB standard

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors