PdfDocument.IsPasswordProtected Method (String)

Note: This API is now obsolete.

Determines whether the PDF document is password protected.

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

Syntax

C#
[ObsoleteAttribute("This method is obsolete and will be removed in the next version of the library. Please use GetEncryptionInfo instead.")]
public static bool IsPasswordProtected(
	string fileName
)
VB
<ObsoleteAttribute("This method is obsolete and will be removed in the next version of the library. Please use GetEncryptionInfo instead.")>
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