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(
	Stream documentStream
)
VB
Public Shared Function IsPasswordProtected ( 
	documentStream As Stream
) As Boolean

Parameters

documentStream
Type: System.IO.Stream
The stream to read PDF document from.

Return Value

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

See Also