Hi @asad.ali / @aleksey.permyakov
I have a html string but when try to save that html string as pdf my save call [document.Save(streamOut);] goes unresponsive. Using Aspose.PDF 20.12.0
var document = new Aspose.Pdf.Document
{
PageInfo = new PageInfo { Margin = new MarginInfo(28, 28, 28, 18) }
};
var pdfPage = document.Pages.Add();
StringBuilder sb = new StringBuilder();
sb.Append(....);
HtmlFragment bodyInfo = new HtmlFragment(sb.ToString);
bodyInfo.Margin.Bottom = 30;
pdfPage.Paragraphs.Add(bodyInfo);
using (var streamOut = new MemoryStream())
{
document.Save(streamOut);
}
transcript2.zip (7.1 KB)
Thanks
Chandan