Saving as PDF - no images when deployed to IIS

We are currently using Aspose.Words for .NET version 18.9.0. We use embedded Word Templates and use replace to replace values on the templates. We then save it as PDF using:

var physicalFile = Path.Combine(_configuration[“LettersFolder”], Guid.NewGuid().ToString());
doc.Save(physicalFile, SaveFormat.Pdf);

Everything is working fine when debugging using Visual Studio 2017, but when deployed to IIS, the saved PDF loses the Word images.

We are using .NET Core 2.1. Target runtime when publishing is Win-x64

template and (181.6 KB)


Thanks for your inquiry. Please ZIP and attach your input Word document and PDF file here for testing. We will investigate the issue on our side and provide you with more information.

Attached template and sample output.

Additional Information:

I installed IIS on my desktop and it is working fine as well. Images are not showing when deployed on IIS of server which is Windows Server 2016 Standard with IIS 10.

Also created a .NET Core Console App using .NET Core version 2.1.4 - images appear fine when console app was run on my desktop. But running it on server generates PDF with no images as well.


Thanks for sharing the detail. Please spare us some time for the investigation of this issue. We will get back to you soon.


We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-17542. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.


Could you please execute the following code at your server and share the list of warnings that you will receive? Thanks for your cooperation.

Document document = new Document(MyDir + "input.docx");
document.WarningCallback = new DocumentWarnings();
document.Save(MyDir + "18.10.pdf");

public class DocumentWarnings : IWarningCallback
    public void Warning(WarningInfo info)
        Console.WriteLine(info.WarningType + " :: " + info.Description.ToString());

Hi @tahir.manzoor

Sorry for the late response but we have resolved the issue by installing Visual C++ redistributable.

We did not know that this is needed even though we are using .NET Core. Thanks.


Thanks for your feedback. It is nice to hear from you that your problem has been solved. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.