Hi I am trying to select ranges for findReplace operation using below codes.
HeaderFooter hf = section.getHeadersFooters().getByHeaderFooterType(HeaderFooterType.HEADER_PRIMARY);
ranges.add(hf.getRange());
The file, di…...The code highlights "section" text with red in the document’s primary...(hf != null) hf.getRange().replace("section", "$0", opt); } doc...