Merge branch 'Implement-Office-document-metadata-removal-for-Word-(.docx)-Excel-(.xlsx)-and-PowerPoint-(.pptx)-files' of https://github.com/Heritage-XioN/metadata-scrubber-tool into Implement-Office-document-metadata-removal-for-Word-(.docx)-Excel-(.xlsx)-and-PowerPoint-(.pptx)-files

This commit is contained in:
HERITAGE-XION 2026-01-10 15:03:40 +01:00
commit e98488c0de
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class MetadataFactory:
UnsupportedFormatError: If no handler is defined for the file type.
ValueError: If the path is not a valid file.
"""
supported_extensions = ".jpg, .jpeg, .png, .docx, .xlsx, .pptx"
supported_extensions = ".jpg, .jpeg, .png, .pdf, .docx, .xlsx, .xlsm, .xltx, .xltm, .pptx, .pptm, .potx, .potm"
ext = Path(filepath).suffix.lower()
if Path(filepath).is_file():
if ext in [".jpg", ".jpeg", ".png"]: