Whether the file is password protected.

Namespace: Spire.Pdf
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 7.9.2.0 (7.9.2.1020)

Syntax

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

Parameters

fileName
String
The file name

Return Value

Boolean
if password protected,return true,or false

See Also