New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Password filled programmatically #762
Comments
Currently, it's not possible. But I will think about supporting it. Thanks for the suggestion. |
Thanks. Can i fork or make new pull request? How to do ? |
I am sorry, it doesn't accept PRs because it's a commercial product. |
Ok ok thanks to reply. Have you assigned an id or input ref to textfield where user have to type password ? And button? Sorry for my question but before buy library i Need to understand |
There's no id. Here is the structure of html: <div class="rpv-core__asking-password-body">
<div class="rpv-core__asking-password-input rpv-core__asking-password-input--ltr">
<input aria-label="" class="rpv-core__textbox" placeholder="" type="password" value="">
</div>
<button class="rpv-core__primary-button" type="button">Submit</button>
</div> As I imagine, you can use |
Yes i Will try. |
Ok i tested with Javascript console. And it works. Exist a callback that called when password dialog/page prompts to user ? This is the code:
|
@lillogoal const handleAskPassword = (e: DocumentAskPasswordEvent) => {
e.verifyPassword('The password here');
};
<Viewer onDocumentAskPassword={handleAskPassword} />; You don't have to set the input value and submit button manually. |
Thanks |
@lillogoal The v2.9.0 is released. Let me know when you make the purchase |
no words only thanks. I have already written to my PM and in this week CEO is going to buy license |
Awesome! Let me know if you have any questions or suggestions, so I can make the library better. |
I have a question about protected pdf. I uploaded a pdf with password in viewer and it asked to me password.
Can i fill this form and submit programmatically, for example automatically onPdfLoaded ?
Thanks
The text was updated successfully, but these errors were encountered: