PdfFile.IsPdfFileEncrypted Method IsPdfFileEncrypted(Stream) Verifies if the PDF file is encrypted. C#public static bool IsPdfFileEncrypted(Stream stream) Parameters stream Stream Stream that contains the PDF file.