PdfDocument.GetEncryptionInfo Method (Stream)

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

Parameters

documentStream
Type: System.IO.Stream
The stream that contains the data for the PDF document.

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