I do not think you need to use overlay for this. It is much easier and generally a better idea to simply change the content directly, and then re-generate the document. I've attached a sample showing how to e.g. replace a certain text in the document with some other text, it should be clear enough how to use that approach for specific needs.