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 remove_writable_metadata():
    with Metadata("input.jpg") as metadata:
        removed = metadata.sanitize()
        print(f"Removed {removed} properties")

See Also

On this page