Dear Aspose,
using (var streamWriter = new StreamWriter(htmlMemoryStream))
{
streamWriter.Write(outlookCalendarItemHtml);
htmlMemoryStream.Seek(0, SeekOrigin.Begin);
htmlMemoryStream.Flush();<span style="color:green;">//create an instance of LoadOptions and set the LoadFormat to Mhtml</span> <span style="color:blue;">var</span> loadOptions = <span style="color:blue;">new</span> <span style="color:#2b91af;">LoadOptions</span> { LoadFormat = <span style="color:#2b91af;">LoadFormat</span>.Mhtml }; <span style="color:green;">//create an instance of Document and load the MTHML from MemoryStream</span> <span style="color:blue;">var</span> document = <span style="color:blue;">new</span> <span style="color:#2b91af;">Document</span>(htmlMemoryStream, loadOptions); <span style="color:blue;">foreach</span> (Aspose.Words.<span style="color:#2b91af;">Section</span> section <span style="color:blue;">in</span> document.Sections) section.PageSetup.PaperSize = <span style="color:#2b91af;">PaperSize</span>.A4; <span style="color:green;">//create an instance of HtmlSaveOptions and set the SaveFormat to Html</span> <span style="color:blue;">var</span> saveOptions = <span style="color:blue;">new</span> <span style="color:#2b91af;">PdfSaveOptions</span>(); <span style="color:blue;">var</span> targetLocationMemoryStream = <span style="color:blue;">new</span> <span style="color:#2b91af;">MemoryStream</span>(); document.Save(targetLocationMemoryStream, saveOptions); targetLocationMemoryStream.Flush(); <span style="color:green;">//save the document to Html file</span> _impersonatedFile.SaveFileToDestination(converterSettings.OutputFileLocation, targetLocationMemoryStream.ToArray()); targetLocationMemoryStream.Close(); }</pre><pre style="font-family: Consolas; font-size: 13px; background: white;">The problem is the Side bold heading are not rendering properly even though I set my custom font in the body tag. </pre><pre style="font-family: Consolas; font-size: 13px; background: white;">Previously I was using Pechkin to convert this html to pdf. During that time it was rendering properly without any issues.</pre><pre style="font-family: Consolas; font-size: 13px; background: white;">I thought of evaluating this with Aspose. Aspose is not rendering the side heading properly. They were going into new lines. If you go to</pre><pre style="font-family: Consolas; font-size: 13px; background: white;">page no 2 at the Meeting Status has came into two lines. Previously with Pechkin I have not faced this problem.</pre><pre style="font-family: Consolas; font-size: 13px; background: white;">So just for your testing sake I am sending my html file as well. First open that in browser then you will see how I am expecting my output,</pre><pre style="font-family: Consolas; font-size: 13px; background: white;">and see the attached pdf file how it is rendered using Aspose.</pre><pre style="font-family: Consolas; font-size: 13px; background: white;"><u><b>Note:</b></u></pre><pre style="font-family: Consolas; font-size: 13px; background: white;">I have tried to convert the ics file to pdf by following this link.</pre><pre style="background: white;"><font face="Consolas"><b>http://www.aspose.com/community/forums/615396/icalendar-to-pdf/showthread.aspx</b></font></pre><pre style="background: white;"><font face="Consolas">But the result became worst. I did not got a single event in my converted pdf.</font></pre><pre style="background: white;"><font face="Consolas">So I used Nustache and DDay.Ical to generate html and then using Aspose to convert the html to pdf.</font></pre><pre style="background: white;"><font face="Consolas">Thanks & Regards,</font></pre><pre style="background: white;"><font face="Consolas">N.Murali Krishna.</font></pre><pre style="font-family: Consolas; font-size: 13px; background: white;"><br></pre><pre style="font-family: Consolas; font-size: 13px; background: white;"><br></pre></div>