I am able to remove/overwrite some of the metadata (that which is stored in core.xml) with the following code:
def remove_metadata(prs):
"""Overwrites the metadata in core.xml however does not overwrite metadata which is stored in app.xml"""
prs.core_properties.title = 'PowerPoint Presentation'
prs.core_properties.last_modified_by = 'python-pptx'
prs.core_properties.revision = 1
prs.core_properties.modified = datetime.utcnow()
prs.core_properties.subject = ''
prs.core_properties.author = 'python-pptx'
prs.core_properties.keywords = ''
prs.core_properties.comments = ''
prs.core_properties.created = datetime.utcnow()
prs.core_properties.category = ''
prs = pptx.Presentation('my_pres.xml')
remove_metadata(prs)
And this is useful - but there is other metadata that is stored in app.xml such as Company and Manager. I also need to clear these properties. Using python-pptx how can I edit the app.xml file?