StartEnforcingProtection¶
Restricts how the document can be edited when it is opened in a word processor.
1 | |
Parameters¶
( "NoChanges" | "Comments" | "FillingForms" | "TrackedChanges" ) type
The restriction: 'NoChanges' (read only), 'Comments', 'FillingForms' or 'TrackedChanges'.
string password optional
The password needed to remove the restriction. Defaults to no password.
Remarks¶
The restriction is saved in DOCX output. It is an editing restriction, not encryption: the content remains readable, and the password only prevents casual removal of the restriction.
Examples¶
Save a read-only Word document¶
1 2 3 4 5 6 7 | |