In your Python via .NET apps, GroupDocs.Redaction helps remove metadata in just a few steps.
- Start a Redactor and open the Excel file.
- Choose metadata fields to remove.
- Run the redaction process.
- Export the final file.
In your Python via .NET apps, GroupDocs.Redaction helps remove metadata in just a few steps.
import groupdocs.redaction as gr
import groupdocs.redaction.redactions as grr
# Remove hidden data in EXCEL
# Choose what metadata to remove
redaction = grr.EraseMetadataRedaction(grr.MetadataFilters.ALL)
# Open your file with redactor
with gr.Redactor("input.xslx") as redactor:
# Process and save the file
result = redactor.apply(redaction)
redactor.save()
GroupDocs.Redaction for Python via .NET gives you tools to erase metadata, text, and images in many formats. Perfect for secure document sharing.
Detect and delete personal or hidden information from your documents.
Cover parts of images to block out private visuals.
Erase hidden metadata fields that could contain sensitive data.
import groupdocs.redaction as gr
import groupdocs.redaction.options as gro
import groupdocs.redaction.redactions as grr
import groupdocs.pydrawing as grd
# Delete Author information
redaction_author = grr.MetadataSearchRedaction("[A-Za-z0-9 ]+", "GroupDocs Company")
redaction_author.filter = grr.MetadataFilters.AUTHOR
# Delete Title field
redaction_title = grr.MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs.Redaction Usage")
redaction_title.filter = grr.MetadataFilters.TITLE
# Open document for redaction
with gr.Redactor("source.xslx") as redactor:
# Apply changes
redactions = [
redaction_author,
redaction_title
]
result = redactor.apply(redactions)
# Save cleaned document
save_options = gro.SaveOptions()
save_options.add_suffix = True
save_options.rasterize_to_pdf = False
result_path = redactor.save(save_options)
Download GroupDocs.Redaction for free or get a trial license for full access!
Explore documentation, code samples, and community support to enhance your experience.
Use Python to remove sensitive metadata from your EXCEL files. Secure content before sharing.