@vyacheslav.deryushev
Thank you so much for your prompt response. Really Appreciate ! I will follow this action plan and let you know if it helps or not.
Our Word output is working fine and Its only while saving pdf, We are getting this corruption issue.
We already have this for word to pdf :
FontSettings.getDefaultInstance().getSubstitutionSettings().getDefaultFontSubstitution().setDefaultFontName(substFont);
We have not yet added fallbackNoto thing but just wanted to verify that While saving from Word to PDF, We do see below warnings.
In PDF conversion logs, We are setting this -
2025-06-16T23:58:10,631-0300 [][RRDG_Thread-6838-SYNCHRONISED_EXECUTOR] WARN com.ibm.rational.rrdg - CRRPE3555W PDF warning: Arial Unicode MS font is used in the document. Line spacing could be rendered differently.
2025-06-16T23:58:10,631-0300 [][RRDG_Thread-6838-SYNCHRONISED_EXECUTOR] WARN com.ibm.rational.rrdg - CRRPE3555W PDF warning: Font 'Arial Unicode MS' has not been found. Using 'Times New Roman' font instead. Reason: font info substitution.
2025-06-16T23:58:10,631-0300 [][RRDG_Thread-6838-SYNCHRONISED_EXECUTOR] WARN com.ibm.rational.rrdg - CRRPE3555W PDF warning: Font 'Calibri' has not been found. Using 'Liberation Sans' font instead. Reason: table substitution.
2025-06-16T23:58:10,631-0300 [][RRDG_Thread-6838-SYNCHRONISED_EXECUTOR] WARN com.ibm.rational.rrdg - CRRPE3555W PDF warning: Font 'GT America Light' has not been found. Using 'Adobe New Century Schoolbook' font instead. Reason: first available font.
@Prem_Parmar DefaultFontSubstitution
is penultimate substitution rule applied. To force it to be applied you should disable other substitution rules. The first available font substitution rule is applied after DefaultFontSubstitution
rule:
Make sure you are using DefaultFontName correctly:
Aspose.Words.Fonts.FontSettings.DefaultInstance.SubstitutionSettings.FontInfoSubstitution.Enabled = false; // Important!
Aspose.Words.Fonts.FontSettings.DefaultInstance.SubstitutionSettings.DefaultFontSubstitution.DefaultFontName = "Times New Roman";
Aspose.Words.Fonts.FontSettings.DefaultInstance.SubstitutionSettings.DefaultFontSubstitution.Enabled = true;
Have you try to install missed fonts and check the results? Also, have you try to install SymbolMedium font?