Hi,
Is it possible to get only one HTML file when we convert a word to HTML.
Actually images are export outside the HTML file, I would like to have binary data inside the html document.
Best regards
Hi,
Is it possible to get only one HTML file when we convert a word to HTML.
Actually images are export outside the HTML file, I would like to have binary data inside the html document.
Best regards
Hi Stephan,
Thanks for your inquiry. Sure, you can use HtmlSaveOptions.ExportImagesAsBase64 property to specify whether images are saved in Base64 format to HTML. When this property is set to true image data is exported directly on the img elements and separate files are not created:
Document doc = new Document(MyDir + @"in.docx");
HtmlSaveOptions opts = new HtmlSaveOptions(SaveFormat.Html);
opts.ExportImagesAsBase64 = true;
opts.PrettyFormat = true;
doc.Save(MyDir + @"15.9.0.html", opts);
Best regards,
Thanks for your help