I encountered a problem while using the aspose.word.python . My code runs fine on Windows, but when I migrated it to Linux, I started encountering errors.
problematic document: 1702362001552.docx (40.5 KB)
my code:
for node in paragraph.as_paragraph().get_child_nodes(aw.NodeType.ANY, False):
print(node.node_type)
if node.node_type == 35:
text = node.to_string(aw.SaveFormat.HTML)
# save_options = aw.saving.HtmlSaveOptions()
# save_options.export_relative_font_size = True
# save_options.export_images_as_base64 = True
# text = node.to_string(save_options)
error message: Proxy error(ArgumentOutOfRangeException): Expected a value between 0 and 3291. (Parameter ‘index’)
Expected Behavior:
I expect to successfully convert shape or officematch nodes to HTML format on Linux for display on a webpage.
Please assist in resolving this issue. Thank you!