Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > PdfDocument Class > PdfDocument Methods > IsPasswordProtected Method > IsPasswordProtected Method (Stream, PdfConfigurationOptions)
Determines whether the PDF document is password protected using specified configuration options.

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

Syntax

C#
public static bool IsPasswordProtected(
	Stream documentStream,
	PdfConfigurationOptions options
)
VB
Public Shared Function IsPasswordProtected ( 
	documentStream As Stream,
	options As PdfConfigurationOptions
) As Boolean

Parameters

documentStream
Type: System.IO.Stream
The stream to read PDF document from.
options
Type: BitMiracle.Docotic.Pdf.PdfConfigurationOptions
The configuration options.

Return Value

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

See Also