We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Setting an Image using a web link. Aspose is using TLS 1.0 to grab image, causing image to not merge into document

We have learned that when saving a document to PDF, linked images are showing up blank. We tracked this down to Aspose.Words grabbing the linked image using TLS 1.0. Since TLS 1.0 is outdated and insecure, our servers are set to use TLS 1.2 only.

Here is my code snippet:

For Each shape In doc.GetChildNodes(NodeType.Shape, True)
   If shape.ImageData.SourceFullName = "https://www.myserver.com/images/suspectphoto.jpg" Then
       shape.ImageData.SourceFullName = imgFileSuspectPhoto
   End If
Next

My questions are as follows:

  1. Is is possible to change how Aspose.Words grabs the link image to use TLS 1.2 or higher?
  2. Is there any other work around for this issue?

Thanks,

Brian

@brianeskra,

Thanks for your inquiry. Have you tried the latest version of Aspose.Words for .NET i.e. 20.2 on your end? In case the problem still remains, please ZIP and upload your input Word document, Aspose.Words generated PDF file showing the undesired behavior and a simple Console Application (source code without compilation errors) here for testing. We will then investigate the scenario on our end and provide you more information.