/// <summary> /// Populates the output. /// </summary> /// <param name="output">The output.</param> /// <param name="xhtmlDocument">The XHTML html.</param> private void PopulateOutput(PrintContext printContext, Epub.Document ePubDocument, HtmlDocument xhtmlDocument) { var ePubChapterFile = "cover"; var result = ePubDocument.AddXhtmlData(this.RenderingItem["ePub Base Path"] + ePubChapterFile + ".html", xhtmlDocument.DocumentNode.OuterHtml, false); ePubDocument.AddMetaItem("cover", "cover.html"); if (printContext.Images.Any()) { ePubDocument.AddMetaItem("cover-image", printContext.Images.FirstOrDefault().Key); } }
/// <summary> /// Populates the output. /// </summary> /// <param name="output">The output.</param> /// <param name="xhtmlDocument">The XHTML html.</param> private void PopulateOutput(PrintContext printContext, Epub.Document ePubDocument, HtmlDocument xhtmlDocument, string chapterTitle, string ePubChapterFile) { var result = ePubDocument.AddXhtmlData(this.RenderingItem["ePub Base Path"] + ePubChapterFile + ".html", xhtmlDocument.DocumentNode.OuterHtml); }