Aspose-words-22.12.jar causes java.lang.NullPointerException while using {PAGE \* MERGEFORMAT} {NUMPAGES \* MERGEFORMAT} tags in word template files, when Row.remove() is called before document.save().
It is working f…...The problem occurs because layout mode is not rebuilt after document... UpdateFields() builds the layout model in order to update NumPages...