Click or drag to resize

Document SetWriteProtection Method (String, Boolean)

Sets the write protection for a document with an optional password and recommended read-only setting.

Namespace: Spire.Doc
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public void SetWriteProtection(
	string password,
	bool recommended
)

Parameters

password
Type: System String
The password to set for write protection.
recommended
Type: System Boolean
Whether the read-only recommendation should be enabled (true) or disabled (false).
See Also