Check whether doument is encrypted.

Namespace: Spire.PdfViewer.Forms
Assembly: Spire.PdfViewer.Forms (in Spire.PdfViewer.Forms.dll) Version: 6.6.0.0 (6.6.0.2020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public static bool IsEncryptedDocument(
	string filePath
)
Public Shared Function IsEncryptedDocument ( 
	filePath As String
) As Boolean
public:
static bool IsEncryptedDocument(
	String^ filePath
)
static member IsEncryptedDocument : 
        filePath : string -> bool 

Parameters

filePath
String
File path.

Return Value

Boolean
Document is encrypted,true.Otherwise,false.

See Also