I am using the below source code in order to identify any text boxes containing MergeField
Pattern pattern = Pattern.compile("(MERGEFIELD.+\\* MERGEFORMAT)");
try {
// Find all text boxes containing merge fields
Docum…...AtomicInteger(1); for (Object obj : document.getChildNodes(NodeType...getChildNodes(NodeType.SHAPE, true)) { if (obj instanceof Shape) { int bm = bmCount...