We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Captions are not Preserved as Captions when converting docx to html and back to docx

I have added Captions the the bottom of the Table in my document . Then i am converting the document into HTML and then back to docx , in this process caption is not preserved as caption field it converts into paragraph text with caption styleing maintined . Hence when i try to add Table of Figures it comes empty.

If i do the same inside word (i.e convert word to html and back to word) the caption behaviour is preserved.

Below is the screen shot of adding caption in word document.

Before Document is Converted To HTML

image.png (32.6 KB)

Once Document is converted to HTML and then back to Docx

image.png (35.9 KB)

If i do the same in word i.e save word document to html and then back to word document the captions are preserved as Captions.

@cyrusdaru1 Captions use SEQ fields, but currently Aspose.Words does not support preserving this type of fields upon DOCX->HTML->DOCX roundtrip. This feature request is logged as WORDSNET-21037. We will keep you informed and let you know once it is resolved.
Currently Aspose.Words preserves only PAGE, NUMPAGES, NOTEREF, REF, AUTOR and TITLE fields.