p.s. I have also tried the same code with Aspose Words 23.7 evaluation edition and this problem doesn’t exist. However, if I use Aspose Words 24.3 licensed edition, this problem will come.
@zwei Unfortunately, I cannot reproduce the problem on my side. Here is PDF document produced on my side using the latest 24.4 version of Aspose.Words for Java and the following simple code:
Document doc = new Document("C:\\Temp\\in.mhtml");
doc.save("C:\\Temp\\out.pdf");
Please make sure the image is accessible in the environment where the document is converted. Also, please try using the latest version and let us know if the problem still persists.
Thanks for your reply, however it is a MHTML file, therefore the inline attached picture is part of the same MHTML file. So Aspose should have access to the inline attached pic.
The reason of this problem should be our Firewall setting.
The Aspose evaluation edition was installed in a PC which has free internet access, yet the licensed edition was installed in a Server which has very strict firewall settings.
@zwei Yes, this definitely might be the reason of the problem. You can try using IResourceLoadingCallback to implement a custom logic for loading external resource.