PdfDocument
IsPasswordProtected Method
|
Whether the file is password protected.
Namespace:
Spire.Pdf
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
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
-
Type:
System
String
The file name
Return Value
Type:
Boolean
if password protected,return true,or false
See Also