Removes writable metadata properties from the package, recursively affecting all nested packages.
defsanitize(self):...
Returns: int: The number of affected properties.
Example
fromgroupdocs.metadataimportMetadatawithMetadata("input.pdf")asmetadata:affected=metadata.sanitize()print(f"Removed {affected} properties")metadata.save("output.pdf")```### See Also*class[`PdfInspectionPackage`](/metadata/python-net/groupdocs.metadata.formats.document/pdfinspectionpackage/)
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.