protect pdf file with password c#
set the user password in SecuritySettings
pdf.SecuritySettings.UserPassword = "your password";
set the user password in SecuritySettings
pdf.SecuritySettings.UserPassword = "your password";