About save As HTML format

Hi,

I have a word document (11000003522858-11000003524185.docx) and I want to render it
in HTML.

When using HtmlFixedSaveOptions : (see folder “Save as HtmlFixedSaveOptions”)

  • the output is with DIV and SVG elements, so I can select Text in the HTML when displaying it. ( you can see the Screenshot_1.png)

When using HtmlSaveOptions : (see folder “Save as HtmlSaveOptions”)

  • the output is done with Images in png format (you can see the Screenshot_2.png). So we can not select text.

My question is : Can we render svg, div, span elements with the HtmlSaveOptions ? so that we can select elements in the html rendered.

In the zip file, all the elements.
Thanks.

Done with Aspose.Words.version : 19.8.0.0

elements.zip (342.7 KB)

@julien.mevel.isilog

We have logged this feature request as WORDSNET-19205 in our issue tracking system. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

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

Hello,

I just tested with version 22.11, the problem is still present, when I save in SaveFormat.Html the text is converted into an image.

Can you see why?

I have attached the source code to you.

Cordially
element.zip (257.9 KB)

@ISIWARE You should save the document with the HtmlSaveOption.ExportShapesAsSvg=true option specified.

With the option it is possible to select the text.
Thanks

1 Like