Hi Team,
I am converting a Word document to HTML using Aspose.Words 25.5.0. My document contains an image with the “Behind Text” wrap setting. However, in the HTML output, the image position has changed and no longer matches the source document. How can I fix this issue? I would like to resolve it without using the Fixed HTML format.
Code :
HtmlSaveOptions options = new HtmlSaveOptions(SaveFormat.Html)
{
ExportImagesAsBase64 = true,
ExportShapesAsSvg = false,
ExportXhtmlTransitional = true,
Encoding = System.Text.Encoding.UTF8,
ExportHeadersFootersMode = ExportHeadersFootersMode.None,
ExportPageMargins = true,
ExportPageSetup = true,
UseHighQualityRendering = false,
AllowEmbeddingPostScriptFonts = true,
PrettyFormat = false,
ExportTocPageNumbers = true,
CssStyleSheetType = CssStyleSheetType.Inline,
MemoryOptimization = true,
ExportListLabels = ExportListLabels.AsInlineText,
ImageResolution = 200
};
MemoryStream wordMs = new MemoryStream(WordBytes)
doc.Save(@"D:\Temp\MovableImage.html", options);
Attachments :
MovableImage.zip (36.6 KB)