I have the Data.xml file and a pdf file filled with informations. I'm trying to embed the data.xml file in the XMP metadata stream of the PDF because this data should be hidden.
I used iText to create the pdf and to add the usual metadata such as author etc. But I'm not able to understand how to add the xml as metadata in the xmp stream. Is there a function in the iText or xmlworker library that allows me to do this? I've tried but I can't fin the way to do this.
(I have no code to post because all code written to create the pdf and so on works perfectly, just dunno how to proceed to do what I described before. Is there something in the iText library that provides it, or i should use other tools?)