I am using PDFTron to create a PDF Reader and I am trying to open PDF files that have been encrypted with the password "test". I am trying to make it so the user doesn't have to type the password in themselves in the password dialog box like below. Instead I would like to pass "test" in the code itself and then for it to open the document. I am handling security of the viewer in a different way so it isn't a problem me passing the password in the code itself. I have looked online and have tried it like below but it didn't work it just showed the dialog as normal.
PDF Tron Password Dialog screen
Thanks