public interface RequestPdfDocumentPasswordCallback extends BrowserAsyncCallback<RequestPdfDocumentPasswordCallback.Params,RequestPdfDocumentPasswordCallback.Action>
Use the RequestPdfDocumentPasswordCallback.Action.password(String)
to provide the password for the encrypted
PDF document.
Use the RequestPdfDocumentPasswordCallback.Action.showPasswordDialog()
method to invoke the default PDF viewer password
dialog.
Use the RequestPdfDocumentPasswordCallback.Action.cancel()
method to cancel the request.
browser.set(RequestPdfDocumentPasswordCallback.class, (params, tell) -> {
if (params.url().endsWith("my-protected-file.pdf")) {
tell.password("H3NXrfF23");
}
});
Modifier and Type | Interface and Description |
---|---|
static class |
RequestPdfDocumentPasswordCallback.Action
An action providing a response to the
RequestPdfDocumentPasswordCallback . |
static interface |
RequestPdfDocumentPasswordCallback.Params
The parameters of the
RequestPdfDocumentPasswordCallback . |
on