remove_customizations method

remove_customizations()

Removes toolbar and keyboard command customizations from the document.

def remove_customizations(self):
    ...

Examples

Shows how to remove toolbar and keyboard command customizations from the document.

doc = aw.Document(file_name=MY_DIR + 'Customized menu.docx')
# Remove all custom document UI customizations, including custom context menu entries.
doc.remove_customizations()
doc.save(file_name=ARTIFACTS_DIR + 'Document.RemoveCustomizations.docx')

See Also