Hello Aspose Team
We have encountered an issue when converting a .doc document to PDF using Aspose.Words 25.1 for .NET.
After the conversion, some of the charts from the attached document are missing from the resulting PDF. However, if the charts are converted separately, they are rendered correctly.
Issue reproduced with:
Aspose.Words.Document doc = new(input);
doc.Save(output);
Attached input.doc and output.pdf with missing charts
files.7z (3,4 МБ)
@BrokeDev CB_Stem Medium and CB_Stem fonts used in your document are not available on my side. Could you please attach these fonts here for testing? Also, could you please save your document as PDF using MS Word and attach the result here for our reference?
In addition, your document uses Aptos font, which is cloud font, so it is not installed by default and is downloaded by MS Word on demand. Aspose.Words does not download cloud fonts.
The fonts are required to build document layout. If Aspose.Words cannot find the font used in the document, the font is substituted . This might lead into fonts mismatch and document layout differences due to the different fonts metrics. You can implement IWarningCallback to get notifications when font substitution is performed.
Please see our documentation to learn where Aspose.Words looks for fonts:
https://docs.aspose.com/words/net/specifying-truetype-fonts-location/
1 Like
Thank you for the suggestion!
We implemented IWarningCallback and found an issue with fonts on our end
1 Like
@BrokeDev It is perfect that you managed to resolve the problem. Please feel free to ask in case of any questions or issues. We are always glad to help you.