PdfFile.IsPdfFileUserPassword Method IsPdfFileUserPassword(Stream,String) Verifies if the password matches the user password set on the PDF file. C#public static bool IsPdfFileUserPassword(Stream stream, string password) Parameters stream Stream Stream that contains the PDF file. password String Password to verify.