EbupOnFly class
This class allows us to create epub on fly by strings, bytes etc.

Usage is similar to Epub:
EpubOnFly epub = new EpubOnFly();
epub.Metadata.Creator = "Bkslim";
epub.Metadata.Title = "TestBook";
epub.Structure.Directories.ImageFolder = "Image";
epub.AddImage("img1.jpg", bytes);
epub.AddCss("style.css", cssContent);
epub.AddContent("filename.html", htmlContent);
epub.BuildToBytes();

Functions AddImage, AddCss and AddContent are for attaching specified element to book.
Also, exist AddResource function, that allows us to add any type of resorce to any location.

Last edited Apr 21, 2011 at 12:14 PM by bkslim, version 1

Comments

No comments yet.