Unfortunately, I do not know, how to figure out which fonts are used in a Word 2016 document.
I tried however the following. I chose in Word to embed the fonts in the document, but this did not help either.
You can find the document attached.
doc_with_barcode_simple.zip (1.6 MB)
Further, I would like to point out that the document is correctly saved by Aspose.Words, if I use the following code:
var doc = new Document(input_filename);
doc.WarningCallback = new MissingFontsWarning();
doc.Save(output_filename);
As you can see, I also added a WarningCallback to the document:
private class MissingFontsWarning : IWarningCallback
{
public void Warning(WarningInfo info)
{
switch (info.WarningType)
{
case WarningType.FontEmbedding:
Console.WriteLine($"{nameof(WarningType.FontEmbedding)}: {info.Description}");
break;
case WarningType.FontSubstitution:
Console.WriteLine($"{nameof(WarningType.FontSubstitution)}: {info.Description}");
break;
}
}
}
But I do not get any warning in the console.