Custom XMP property that can't b deleted

Hello

How do I add a custom XMP property that can’t b deleted? Similar to the “CreatorTool: Aspose Ltd.”

Thank you
DK

@D_K

Thank you for contacting support.

We would like to share with you that you can add XMP properties by using below code snippet in your environment. However, we are afraid that you may not add a property that can not be deleted.

        //open document
        Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(dataDir + "Test.pdf");

        //set properties
        pdfDocument.Metadata["xmp:Subject"] = "Nickname";

        pdfDocument.Metadata["xmp:CustomProperty"] = "Custom Value";

        //save output document
        pdfDocument.Save(dataDir + "outputXMP_18.5.pdf");

In case you are able to add such a property with Adobe Acrobat, please share a sample PDF file while mentioning the steps for the same, so that we may investigate to help you out.

Hello Farhan,

Thank you for your reply. Can you please clarify why CreatorTool property behaves the way it does? What is different about this property?

Thanks
DK

@D_K

We would like to update you that editing these fields is an API limitation so you may not modify this metadata using Aspose.PDF API.