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.