Table of Contents

Method GetEncryptionInfo

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

GetEncryptionInfo(string)

Retrieves information about encryption scheme used in a PDF document.

public static PdfEncryptionInfo? GetEncryptionInfo(string fileName)

Parameters

fileName string

The name of the PDF file.

Returns

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.

GetEncryptionInfo(string, PdfConfigurationOptions)

Retrieves information about encryption scheme used in a PDF document.

public static PdfEncryptionInfo? GetEncryptionInfo(string fileName, PdfConfigurationOptions options)

Parameters

fileName string

The name of the PDF file.

options PdfConfigurationOptions

The configuration options.

Returns

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.

GetEncryptionInfo(Stream)

Retrieves information about encryption scheme used in a PDF document.

public static PdfEncryptionInfo? GetEncryptionInfo(Stream documentStream)

Parameters

documentStream Stream

The stream that contains the data for the PDF document.

Returns

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.

GetEncryptionInfo(Stream, PdfConfigurationOptions)

Retrieves information about encryption scheme used in a PDF document.

public static PdfEncryptionInfo? GetEncryptionInfo(Stream documentStream, PdfConfigurationOptions options)

Parameters

documentStream Stream

The stream that contains the data for the PDF document.

options PdfConfigurationOptions

The configuration options.

Returns

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.