Aspose Words Python Self Host - Process html n Merge fields

Hi,
We are trying to migrate from Aspose cloud rest API in rails to a self-hosted Aspose Words Python server since Its not available in Ruby.

In the documentation, there is only basic information regarding merge fields like inserting a string.

Currently We are doing something like in Ruby

@words_api = AsposeWordsCloud::WordsApi.new
mail_merge_request = AsposeWordsCloud::ExecuteMailMergeOnlineRequest.new(template: load_file(@record), data: fields_data)
output_doc = @words_api.execute_mail_merge_online(mail_merge_request)
convert_request = AsposeWordsCloud::ConvertDocumentRequest.new(document: StringIO.new(output_doc).read, format: 'pdf')
@words_api.convert_document(convert_request)

where field data can be something like

{ 
  "format": "html",
  "htmlText":  "<html>
      <body>
        <div>
          <img src='#{img_path}'>
          <div style='text-align: center; width: 90%; margin-top: -5px'>#{caption}</div>
        </div>
      </body>
    </html>" 
}

How to write the similar thing for Aspose.Words-for-Python-via-.NET self hosted instance

@nikhilgoyal2205 Generally this can be achieve used IFieldmergingCallback. But unfortunately, in Python version of Aspose.Words currently it is not allowed to use callbacks.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSPYTHON-3

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Currently, you can only move Documentbuilder cursor to a particular merge field and then insert HTML:

doc = aw.Document("C:\\Temp\\in.docx")
builder = aw.DocumentBuilder(doc)
builder.move_to_merge_field("htmlText")
builder.insert_html("<b>Some <i>Html</i></b>")
doc.save("C:\\Temp\\out.docx")