devlooped / epub

A lightweight library that implements EPUB standard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 Kirill Osenkov MFB Technologies, Inc. Stephen Shaw Torutek DRIVE.NET, Inc. Daniel Gnägi Ashley Medway Keith Pickford Thomas Bolon Kori Francis Toni Wenzel Giorgi Dalakishvili Mike James Dan Siegel Reuben Swartz Jacob Foshee Eric Johnson Norman Mackay Certify The Web Rich Lee Ix Technologies B.V. David JENNI Jonathan Oleg Kyrylchuk Mariusz Kogut Charley Wu Jakob Tikjøb Andersen Seann Alexander Tino Hager Mark Seemann Angelo Belchior Blauhaus Technology (Pty) Ltd Ken Bonny Simon Cropp agileworks-eu Zheyu Shen

Sponsor this project  

Learn more about GitHub Sponsors

About

A lightweight library that implements EPUB standard

License:MIT License


Languages

Language:C# 98.5%Language:SCSS 1.5%