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;
    // ...
}

About

A lightweight library that implements EPUB standard

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors