We use Aspose to save word file as HTML. We found that in one scenario, in generated html file, images are placed in the wrong position.
Here is a sample application:
WordTest.zip (84.4 KB)
Steps to reproduce:
- Open project in Visual Studio
- Set an Aspose license (important)
- Run the app and choose destination folder
- Press a button. In the destination folder you will find a html file
- Open this html file in Notepad to see source code.
Basically the important part looks like this:
image.png (8.3 KB)
We have 2 anchor tags and two img tags. Every img should be inside anchor. But for the first image (anchor) we see that the anchor is empty and the image is inside the second anchor.
The correct result should look like this:
image.png (7.9 KB)
In our application this is important that the image is inside it’s own anchor, so I hope you will be able to fix this problem.
If you need more info, please let me know
Thanks