[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Security.StandardSecurityHandler.HasOwnerPassword

HasOwnerPassword Property

HasOwnerPassword

Gets a value indicating whether the PDF has an owner password that is required to edit the document.

This property is initialized when the document is loaded.

Note that a document may be encrypted with an empty password, in which case HasUserPassword and HasOwnerPassword properties return false.

Note also that, according to the PDF specification, if an owner password is not specified, then the user password should be used. GcPdf follows this rule, so if a PDF that was created using GcPdf with only a user password is loaded into GcPdfDocument, its AccessType will be Owner, HasOwnerPassword will be true and HasUserPassword will also be true.
Declaration
[Obsolete("Use PasswordMatches instead.")]
public bool? HasOwnerPassword { get; }
<Obsolete("Use PasswordMatches instead.")>
Public ReadOnly Property HasOwnerPassword As Boolean?