sanitize method

On this page

sanitize

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

Learn more:

def sanitize(self):
    ...

Returns: int: The number of affected properties.

Example

from groupdocs.metadata import Metadata

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

See Also

On this page