Determines whether the PDF document is password protected.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public static bool IsPasswordProtected(
	string fileName
)
VB
Public Shared Function IsPasswordProtected ( 
	fileName As String
) As Boolean

Parameters

fileName
Type: System.String
The name of the existing PDF file.

Return Value

Type: Boolean
true if PDF document is password protected; otherwise, false.

See Also