I tried to convert DocX file which contains Bengali fonts, Opentype features  needs to be enabled for that. I’m using following code in ASP.NET MVC to convert docx, which throws an exception that Unable to load 'harfbuzz.dll’
string filePath = Server.MapPath("/Files/combineFonts.docx"); // Load a Word file from the local drive. var doc = new Document(filePath); doc.LayoutOptions.TextShaperFactory = Aspose.Words.Shaping.HarfBuzz.HarfBuzzTextShaperFactory.Instance; doc.Save(filePath + ".pdf");
But the library works fine for Console and ASP.NET Core Application. Will you please help me regarding this issue.
Docx File: combineFonts.docx (15.1 KB)
Project Link: https://github.com/maaaruf/WordConverter/