Protect PDF with Password using C#

Add a password to the PDF file. There are currently two types of PDF passwords - Open password and permission password to Protect PDF with Password.
The PDF Open password can prevent access by users who do not know the password. The permission password can deny the user’s editing, printing, copying and adding operations.

@Sounbro

Could you please elaborate your query? We will then answer your query according to your requirement.