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…...isInline()) { NodeCollection<Paragraph> paragraphs = shape.getChildNodes(NodeType...getChildNodes(NodeType.PARAGRAPH, true); Paragraph refNode = shape.getParentParagraph();...