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
stringThe 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
stringThe name of the PDF file.
options
PdfConfigurationOptionsThe 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
StreamThe 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
StreamThe stream that contains the data for the PDF document.
options
PdfConfigurationOptionsThe 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.