Gets or sets the owner password for the document.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public string OwnerPassword { get; set; }
VB
Public Property OwnerPassword As String
	Get
	Set

Property Value

Type: String
The owner password for the document.

Remarks

Opening the document with the correct owner password (assuming it is not the same as the UserPassword) allows full (owner) access to the document. This unlimited access includes the ability to change the document's passwords and access permissions.

Setting OwnerPassword or UserPassword property to a non-empty string causes the document to be saved encrypted.

Setting OwnerPassword and UserPassword property to the empty string causes the document to be saved unencrypted.

See Also