We can set passwords to authenticate PDF before viewing. This feature needed when the documents are confidential and only required users needs to access the document.
The below script snippet shows setting two passwords for the same PDF so the users with any of these two passwords can access the corresponding document.
<meta name="password" value="marg"/>
<meta name="security-password" value="123456"/>