We have tested the scenario using the latest version of Aspose.Words for .NET 21.5 and have not found the shared issue. So, please use Aspose.Words for .NET 21.5. We have attached the output PDF and HTML with this post for your kind reference.
Thanks for this.
Turns out the problem was not with the version I was using (21.4) but because the server didn’t have the font installed.
Is there any way of knowing when a font couldn’t be loaded when using the API? any useful log?
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:
The ‘Arial narrow’ font is not installed on the system where 'Free online converter' demo does conversion. Please download and install the latest version of Aspose.Words for .NET 21.5 and install ‘Arial narrow’ on the machine where you want to convert DOCX to PDF. Please refer to the following article about document to PDF conversion.
While DOCX to PDF conversion, Aspose.Words tries to find the required font among the fonts embedded in the original document. So, you can use documents with embedded fonts for conversion.