How do I add XMP Rights Management Properties to a pdf file?

I am working on a system that will create multiple reports. I need to apply our companies copyright legend to the metadata.

I would like to use XMP data properties (see attachment) similar to what is shown.

 xmpRights:Marked
 xmpRights:WebStatement

xmp metadata example.jpg (97.6 KB)

@csludtke

Thank you for contacting support.

Please visit below documentation articles for your kind reference and then share your valuable feedback with us.

We hope this will be helpful. Please feel free to contact us if you need any further assistance.

I attempted to read the metadata (xmpRights) from the attached file. Accessing this metadata resulted in an application crash.

Note that the attached document has:

dc:rights , xmpRights:Marked , xmpRights:WebStatement

Reportoutput_itext.pdf (297.3 KB)

@csludtke

Would you please share narrowed down code which crashes the application so that we may investigate accordingly.