I am planning to get the all merge fields from word template by using below sample code.
But all image field names are comming with "image:" string, so is there any specific method to remove the "image:", "TableStart:" and "TableEnd:" from field names(Instead of general sub string).
String fieldNames[] = document.getMailMerge().getFieldNames();
for(String str : fieldNames){
System.out.println(str);
}
Jar file verion : Aspose.Words.14.4.jdk16
Thanks.