PdfDocument.GetEncryptionInfo Method (Stream, PdfConfigurationOptions)

Docotic.Pdf library help > BitMiracle.Docotic.Pdf > PdfDocument Class > PdfDocument Methods > GetEncryptionInfo Method > GetEncryptionInfo Method (Stream, PdfConfigurationOptions)
Retrieves information about encryption scheme used in a PDF document.

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

Syntax

C#
public static PdfEncryptionInfo GetEncryptionInfo(
	Stream documentStream,
	PdfConfigurationOptions options
)
VB
Public Shared Function GetEncryptionInfo ( 
	documentStream As Stream,
	options As PdfConfigurationOptions
) As PdfEncryptionInfo

Parameters

documentStream
Type: System.IO.Stream
The stream that contains the data for the PDF document.
options
Type: BitMiracle.Docotic.Pdf.PdfConfigurationOptions
The configuration options.

Return Value

Type: PdfEncryptionInfo
For encrypted documents, returns an instance of a PdfEncryptionInfo descendant class with information about the encryption scheme used in the document. For not encrypted documents, returns null.

See Also