If the final DOCX has a placeholder that appear more than one time, and it needs to be replaced by unique contents, the firstMatch option available in replace methods can be used.
firstMatch doesn't work for me, if the placeholder is located in the footer or in the header. The QR-Code should be at the top of the document. Is there a solution? And if I set firstMatch=true, how can I replace the placeholder in the rest of the pages?