sanitize method

On this page

sanitize

Removes writable metadata properties from the package recursively, affecting all nested packages.

def sanitize(self):
    ...

Returns: int: The number of affected properties.

Example

from groupdocs.metadata import Metadata

def remove_metadata(input_path, output_path):
    with Metadata(input_path) as metadata:
        removed = metadata.sanitize()
        metadata.save(output_path)
        return removed

See Also

On this page