private void PersistParsedHtmlTemplateOfPdfDocument(PdfEntity entity, string html, JObject templateData) { var templatedHtml = _templatingEngine.Render(html, templateData); templatedHtml = TemplateUtils.AddWaitForAllPageElementsFixToHtml(templatedHtml); _pdfStorage.AddOrReplace(new StorageData(new StorageFileId(entity, "html"), Encoding.UTF8.GetBytes(templatedHtml))); }
public StorageFileId(PdfEntity pdfEntity, string extension = "pdf") : this(pdfEntity.GroupId, pdfEntity.FileId, extension) { }