Iam working on adding Watermark to a docx document using docx4j apis.Here is my code
The w:p node formed with v:shapetype and v:shape node are complete , except that Iam unable to set the r:id attribute in v:imagedata inside v:shape node.
<v:shape o:spid="_x0000_s2052" style="position:absolute;margin-left:0;margin-top:0;width:468pt;height:351pt;z-index:-251656192;mso-position-horizontal:center;mso-position-horizontal-relative:margin;mso-position-vertical:center;mso-position-vertical-relative:margin" type="#_x0000_t75" id="WordPictureWatermark775137986"><v:imagedata o:title="watermark" id="2"/></v:shape>
How can I add r:id attribute to v:imagedata node.Can someone help me on this?.
Thanks in Advance,
Krithi.
========================CODE========================
Part part = wmlPackage.getMainDocumentPart().getRelationshipsPart().getPart(relid);
Hdr hdr = null; ...