[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Security.StandardSecurityHandler.HasUserPassword

HasUserPassword Property

HasUserPassword

Gets a value indicating whether the PDF has a user password that is required to open 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? HasUserPassword { get; }
<Obsolete("Use PasswordMatches instead.")>
Public ReadOnly Property HasUserPassword As Boolean?