Retain Image Position during Word DOCX to HTML File Conversion (C# .NET)

Hello,

I’m saving a docx file in to an html file, it’s working, but the image in the top of my 1st page is cut.

Aspose.Words version: 21.4

Please, find in the attached file the input files, the output file and the simple code that was used.aspose.zip (322.8 KB)

Regards.

@ISIWARE,

We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-22437. Your thread has also been linked to this issue and you will be notified as soon as it will get resolved. Sorry for the inconvenience.

@ISIWARE The issue has been closed as not a bug. The image is cropped because it is partially located on the top page margin, which is not visible in HTML by default. The document will look better if exported with HtmlSaveOptions.ExportPageMargins = true that makes page margins visible in HTML.

The issues you have found earlier (filed as WORDSNET-22437) have been fixed in this Aspose.Words for .NET 23.4 update also available on NuGet.