Sanitize
Leave feedback
On this page
Removes writable metadata properties from all detected packages or whole packages if possible. The operation is recursive so it affects all nested packages as well.
public int Sanitize()
The number of affected properties.
Learn more
This example demonstrates how to remove all detected metadata packages/properties from a file.
using (Metadata metadata = new Metadata(Constants.InputPdf))
{
// Remove detected metadata packages
var affected = metadata.Sanitize();
Console.WriteLine("Properties removed: {0}", affected);
metadata.Save(Constants.OutputPdf);
}
- class Metadata
- namespace GroupDocs.Metadata
- assembly GroupDocs.Metadata
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.