DOCX to PDF conversion issue with 'Arial Narrow' font using .NET

The original font of the attached document is Arial Narrow. When uploaded to Qdms and converted to pdf, it does not appear with the “arial narrow” font as attached. The C: / Windows / Fonts directory has the “Arial Narrow” font. When we export Word and convert it to pdf, it appears as arial narrow.
I attached the original file and corrupted file. We are using Aspose.Word 20.4 version. Thanks.
YG12256.zip (347.4 KB)

@srmbimser

Please note that Aspose.Words requires TrueType fonts when rendering document to fixed-page formats (JPEG, PNG, PDF or XPS). You need to install fonts that are used in your document on the machine where you are converting documents to PDF. Please refer to the following articles:

Using TrueType Fonts
Manipulating and Substitution TrueType Fonts

We have tested the scenario using the latest version of Aspose.Words for .NET 20.6 and have not found the shared issue. So, please use Aspose.Words for .NET 20.6.

We share an application so that you can test the error on you. The error occurs in our application hosted on MS server 2019. The project is built on IIS.server_information.PNG (162.1 KB)

http://dm.bimser.com.tr/eba.net/Default.aspx?turl=DXEwaIHxFECBS3553a-J8g

@srmbimser

Please try the latest version of Aspose.Words for .NET 20.7. If you still face problem, please ZIP and attach the problematic and expected output PDF files here for our reference. We will investigate the issue and provide you more information on it.

Aspose word tested with 20.7 DLL, error continues.I attached the original file and corrupted file.
YG12256.zip (361.7 KB)
We share an application so that you can test the error on you. The error occurs in our application hosted on MS server 2019. The project is built on IIS.
http://dm.bimser.com.tr/eba.net/Default.aspx?turl=hIgHY2_fv02Rc_iZL9XBiA

@srmbimser

We are investigating this issue and will get back to you.

@srmbimser

We have tested the scenario using the shared web application and have not found the font issue. Please check the attached PDF generated by Aspose.Words 20.7. 20.7.pdf (90.4 KB)

Please make sure that the ‘Arial Narrow’ font exits on your system. Could you please execute the following code example and share the output with us for further investigation?

// Get available fonts from FontSettings
foreach (FontSourceBase fontsSource in FontSettings.DefaultInstance.GetFontsSources())
{
    foreach (PhysicalFontInfo fontInfo in fontsSource.GetAvailableFonts())
    {
        if (fontInfo.FullFontName.Contains("Arial"))
        {
            Console.WriteLine("\nFontFamilyName : " + fontInfo.FontFamilyName);
            Console.WriteLine("FullFontName  : " + fontInfo.FullFontName);
            Console.WriteLine("Version  : " + fontInfo.Version);
            Console.WriteLine("FilePath : " + fontInfo.FilePath);
        }
    }
}

foreach (PhysicalFontInfo fontInfo in new SystemFontSource().GetAvailableFonts())
{
    if (fontInfo.FullFontName.Contains("Arial"))
    {
        Console.WriteLine("\nFontFamilyName : " + fontInfo.FontFamilyName);
        Console.WriteLine("FullFontName  : " + fontInfo.FullFontName);
        Console.WriteLine("Version  : " + fontInfo.Version);
        Console.WriteLine("FilePath : " + fontInfo.FilePath);
    }
}

We ran the code block you shared, the installed font information is attached.
YG12256_ServerInfo.zip (9.9 KB)

@srmbimser

Thanks for your cooperation. Please try the latest version of Aspose.Words for .NET 20.8 with following code example and share the output document. Please also share if you face any missing font notification. We will investigate this issue further and provide you more information on it.

Moreover, please remove all DLL from your application and share AsposeWebFormTestProject_word.zip again. The link shared in this thread does not exist now.

Document doc = new Document(MyDir + "KP.11_13.doc");
doc.WarningCallback = new HandleDocumentWarnings();
doc.Save(MyDir + "20.8.pdf");

public class HandleDocumentWarnings : IWarningCallback
{
    public void Warning(WarningInfo info)
    {
        // We are only interested in fonts being substituted.
        if (info.WarningType == WarningType.FontSubstitution)
        {
            Console.WriteLine(info.WarningType + " :: " + info.Description.ToString());
        }
    }
}