Click or drag to resize

PdfWebControlLiteDocumentPasswordPending 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: (
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.

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, PdfLiteSettings, 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 storage provider. It is recommend that its output be cached for best performance

DocumentLoaded must be true to call this property.

See Also