on certain machines MSG to PDF conversion throws the the following error :
"Could not find a part of the path ‘C:\Windows\Fonts\private\ARIALNB.TTF’ "
what could be causing this error?, Fonts are installed on the machines under C:\Windows\Fonts, but the library is looking into the folder C:\Windows\Fonts\private\
Here is the code snippet
using (MailMessage mailMsg = MailMessage.Load(InputFileName))
{
using (MemoryStream ms = new MemoryStream())
{
//Save as MHTML
mailMsg.Save(ms, MsgSaveOptions.DefaultMhtml);
//create an instance of LoadOptions and set the LoadFormat to Mhtml
var loadOptions = new Aspose.Words.LoadOptions();
loadOptions.LoadFormat = Aspose.Words.LoadFormat.Mhtml;
//create an instance of Document and load the MTHML from MemoryStream
var document = new Aspose.Words.Document(ms, loadOptions);
//create an instance of HtmlSaveOptions and set the SaveFormat to Html
var saveOptions = new Aspose.Words.Saving.PdfSaveOptions()
{
MemoryOptimization = true,
SaveFormat = SaveFormat.Pdf
};
//save the document to Html file
document.Save(OutputFileName, saveOptions);
}
}