DocumentRemovePersonalInformation Property

Gets or sets a flag indicating that Microsoft Word will remove all user information from comments, revisions and document properties upon saving the document.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.8.0

Syntax

public bool RemovePersonalInformation { get; set; }

Property Value

Type: Boolean

Examples

Shows how to get or set a flag to remove all user information upon saving the MS Word document.
Document doc = new Document(MyDir + "Revisions.docx");
// If flag sets to 'true' that MS Word will remove all user information from comments, revisions and
// document properties upon saving the document. In MS Word 2013 and 2016 you can see this using
// File -> Options -> Trust Center -> Trust Center Settings -> Privacy Options -> then the
// checkbox "Remove personal information from file properties on save"
doc.RemovePersonalInformation = true;

// Personal information will not be removed at this time
// This will happen when we open this document in Microsoft Word and save it manually
// Once noticeable change will be the revisions losing their author names
doc.Save(ArtifactsDir + "Document.RemovePersonalInformation.docx");

See Also