Click or drag to resize

PdfWebControlDocumentPasswordPending Property

Gets a value indicating whether the current document is not yet loaded because a password is needed.

Namespace:  RadPdf.Web.UI
Assembly:  RadPdf (in RadPdf.dll) Version: 3.48.0.0 (3.48.0.0)
Syntax
public bool DocumentPasswordPending { get; }

Property Value

Type: Boolean
true if this document is not fully loaded because a password is needed and ready for use; otherwise false.
Remarks

If this property is true, the client-side user is prompted to enter the PDF password in the web browser. To specify the PDF password server-side only, set ThrowPasswordException to true and use the method CreateDocument(String, Byte, PdfDocumentSettings, String). Instead of prompting for the password client side when the password is missing or invalid, an exception will be thrown if the password is wrong.

Retrieving this property requires a call to the product database. It is recommend that its output be cached for best performance

DocumentLoaded must be true to call this property.

See Also