I have looked at numerous related posts in this forum (and downloaded their samples), but none of them have been of any help.
I have a string containing a fully formed HTML document (like the example below) and I have been attempting to convert this into a word document using your DocIO library with no success. All I have been able to do is create a word document without images,
To be clear, the intention is that the images are embedded inside the word document.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<div style="background-color:#a94442; color:#FFFFFF; font-size:18px; letter-spacing:3px;">Some More Text Here</div>
<div style="font-size:16px; font-weight:500; border-bottom:1px solid #000000; margin:10px 0 10px 0; letter-spacing:2px;">Some More Text Here</div>
<div style="width:100%">
<div style="min-height: 300px;">
<div style="background-color: #f5f3f3; font-weight: bold; font-size: medium; padding: 6px 6px 6px 6px; margin-bottom: 10px;">Some More Text Here</div>
<div style="width:100%">
<div style="margin: 10px !important; overflow: hidden;">
<div>
<p><strong>Some More Text Here</strong></p>
<p>Some More Text Here.</p>
</div>
</div>
</div>
</div>
</div>
<div style="width:100%">
<div style="min-height: 300px;">
<div style="background-color: #f5f3f3; font-weight: bold; font-size: medium; padding: 6px 6px 6px 6px; margin-bottom: 10px;">Some More Text Here</div>
<div style="width:100%">
<div style="margin: 10px !important; overflow: hidden;">
<div>
<p>Some More Text Here</p>
<p><img src="{FILE_PATH_HERE}" alt="" width="468" height="376"></p>
<p> </p>
<p>Some More Text Here</p>
<p><img src="{FILE_PATH_HERE}" alt="" width="474" height="376" ></p>
<p> </p>
<p>Some More Text Here.</p>
<p>Some More Text Here</p>
<p><img src="{FILE_PATH_HERE}" alt="" width="476" height="376"></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>