We have a requirement to enumerate the page layout entities of a word document. We are using LayoutEnumerator for this purpose. We also need to know about any font substitution happened when document is laid out into page layout model.
For example, if some content of document uses some font say “font_1” which is not available on server, then Aspose must be doing some font substitution for “font_1”. How would we come to know about this? If Aspose does not use font substitution then how this case is handled?
Thanks for the information shared above.
In our case, we do not save the document. We just render it using LayoutEnumerator and compute the page numbers where TOC is present in the document. We are using Aspose.Words java.
Could you please provide me the sample code to get missing fonts and font substitution information for above scenario?
You can build logic on the code mentioned in the following Java article that demonstrates as to how you can receive notification of missing Fonts and Font Substitution during rendering document to fixed page formats such as PDF, XPS, Images etc: