When a PDF document is downloaded within our application, it has a totally different font then what is set up in template

When a PDF document is downloaded within our application, it has a totally different font then what is set up in template.

This is the word template, with font Segoe UI:

This is the output PDF file:

This issue has only started happening overnight. Please let me know what is going wrong.

@Tidy_International_UK_Ltd can you please provide further details about your environment?
Additionally can you please check that the font is available in your running environment. If a font is not available and accessible by Aspose.Words API it automatically replace the missing font with another. You can easily check for font substitutions implementing the interface IWarningCallback:

public class IssueCallBack : IWarningCallback
{
    public void Warning(WarningInfo info)
    {
        Console.WriteLine(info.Description);
    }
}
Document document = new Document();
document.WarningCallback = new AppendIssueCallBack();

Hello Eduardo,

We have a .NET solution that issues

  • POSTs - of a Word templates
  • GETs - requesting PDF conversion
  • DELETE - if not to be retained.

As to the font availability, the issue is rather moot in that requests using the the same template randomly use the correct and wrong fonts.

It is almost as if one of the Servers(Services) at your end is missing a basic font library.
Noting that this only recently started happening.

Cheers
Peter

image.png (14.4 KB)

For additional reference, a conversion was attempted 3 times with the same template.
The first two made use of the correct font, but the 3rd was wrong.

the query appear similar

Success: Export the document into the specified format… name ‘f8cbe725-43db-4756-8614-cff74d667dc4.af1074e2-bff8-4c72-a516-abd2b5b794b3.docx’,format ‘pdf’,folder ‘7262662a-5efc-4f73-b4ec-7cc2cafa0456’,outPath ‘’

Success: Export the document into the specified format… name ‘f8cbe725-43db-4756-8614-cff74d667dc4.23c5880c-8711-4a97-b3ec-dc70a089bdb2.docx’,format ‘pdf’,folder ‘7262662a-5efc-4f73-b4ec-7cc2cafa0456’,outPath ‘’

The request trace ID may assist in identifying different processing paths
Request Trace Ids
1-642e3a04-2b52eb784b59c0852e2e2e35 = Fault
1-642e39fa-2d181a85193cb5e958e387da = OK
1-642e39e0-6add941d55b94f8938ed1bad = OK

image.png (93.9 KB)

@Tidy_International_UK_Ltd Do you use Cloud or on-premises version of Aspose.Words API?

Hello Alexey

we use your cloud service …
...//api.aspose.com/...

Cheers
Peter

@Tidy_International_UK_Ltd thank you for additional information. I will move the topic into the appropriate forum. My colleagues from Cloud team will help you shortly.

This topic has been moved to the related forum: Text Font Changes in DOCX Template Conversion to PDF in C# using Aspose.Words REST API - Free Support Forum - aspose.cloud