Sanitize
Metadata.Sanitize method
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()
Return Value
The number of affected properties.
Remarks
Learn more
Examples
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);
}
See Also
- class Metadata
- namespace GroupDocs.Metadata
- assembly GroupDocs.Metadata