I have the requirement to copy a header from one document to a set of multiple documents. To do this, I created new HeaderParts and set their JaxbElements from the old HeaderPart's Hdr object. The header's text is getting copied over correctly, but the image that's on the header isn't getting copied over.
To copy the image, I added that image part from the old header to new header. Only one of the documents I create have the image set correctly. Is there something I'm doing wrong? Is it because I'm copying the same reference to each of the new headers?
What's the best way to go about this?
I've been able to copy images multiple documents to 1 document (i.e. many to one), but not the other way around (i.e. one to many).