71
General / Re: Javascript and deleting namespaces/custom fields
« Last post by RTT on December 27, 2021, 07:01:03 PM »You indeed will need to manipulate the Extensible Metadata Platform (XMP) data you get from the doc.metadata property. Acrobat JavaScript supports ECMAScript for XML (E4X), so it's not that difficult. There is also the Adobe XMP toolkit (there are ports for scripting languages), to manipulate the XMP data easily.
But, for that need in particular, you can use PDF Explorer to export to a csv file the metadata properties you want to keep, run the Anonymize tool and then import the exported properties back to the PDF file.
But, for that need in particular, you can use PDF Explorer to export to a csv file the metadata properties you want to keep, run the Anonymize tool and then import the exported properties back to the PDF file.