The correct way to remove a property is to delete it
Unfortunately that doesn't work either.
The info data is tricky. Back way when, it really was the document metadata. But that hasn't been true for a while. Now it's just a convenience. The real metadata is stored as XML in the "doc.metadata" property. If you delete an "info" property, or set it to null, it only changes the "info". It doesn't change the XML metadata. You can see and edit the XML from the "Additional Metadata" button on the "Description" tab of the document properties dialog. Editing the metadata really does change things.
I'm sure this is a bug. The "info" property is supposed to edit the XML, and it does when setting a property. It should work the same for deleting a property.
Thanks for the response. I initially tried doing:
1 person found this helpful
Yes, the meta data is just an XML string and it can be set. But it's tricky, it has to be done in the right way or Acrobat will choke and ignore the change.