PdfDocument.GetEncryptionInfo Method (String, PdfConfigurationOptions)

Docotic.Pdf library help > BitMiracle.Docotic.Pdf > PdfDocument Class > PdfDocument Methods > GetEncryptionInfo Method > GetEncryptionInfo Method (String, 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(
	string fileName,
	PdfConfigurationOptions options
)
VB
Public Shared Function GetEncryptionInfo ( 
	fileName As String,
	options As PdfConfigurationOptions
) As PdfEncryptionInfo

Parameters

fileName
Type: System.String
The name of the PDF file.
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