Hi,
We are evaluating the ASPOSE Word module to use for our client. As per requirement, we need to convert word document (using Jameel Noori Nastaleeq font) to pdf. But due to some reasons when we tried to use the custom font system is generating the empty pdf file. We have reviewed the forum and found two solutions but those not work. Can you please guide how can we fix this issue so that we can complete our POC and share recommendations with our client. below is the sample code using in asp.net web app.
string dir = “D:\reports\”;
string inputfile = dir + “report.doc”;
string outputfile = dir + “output.pdf”;
///aspose convertor
var document = new Aspose.Words.Document(dir + “report.doc”);
PdfSaveOptions options = new PdfSaveOptions();
options.EmbedFullFonts = true;
FontSettings fontSettings = new FontSettings();
fontSettings.SetFontsFolder(@"D:\\reports\\", false);
//// Set font settings
document.FontSettings = fontSettings;
document.Save(outputfile);
Thanks