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