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.

Remarks

The Decrypt PDF documents in C# and VB.NET article describes how to process encrypted PDF documents.

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.

Remarks

The Decrypt PDF documents in C# and VB.NET article describes how to process encrypted PDF documents.

Read the Font loading in cloud environments section for an example of using configuration options.

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.

Remarks

The Decrypt PDF documents in C# and VB.NET article describes how to process encrypted PDF documents.

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.

Remarks

The Decrypt PDF documents in C# and VB.NET article describes how to process encrypted PDF documents.

Read the Font loading in cloud environments section for an example of using configuration options.