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
.
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
.
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
.
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
.