We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Custom XMP property that can't b deleted


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

Thank you


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?



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.