XFINIUM.PDF Documentation
GetPdfFileEncryptionAlgorithm Method



Xfinium.Pdf.Core Namespace > PdfFile Class : GetPdfFileEncryptionAlgorithm Method
Stream that contains the PDF file.
Returns the size in bits of the encryption key.
Gets the encryption algorithm used by the PDF file in the input stream.
Syntax
'Declaration
 
Public Shared Function GetPdfFileEncryptionAlgorithm( _
   ByVal stream As Stream, _
   ByRef keySize As Integer _
) As PdfEncryptionAlgorithm
'Usage
 
Dim stream As Stream
Dim keySize As Integer
Dim value As PdfEncryptionAlgorithm
 
value = PdfFile.GetPdfFileEncryptionAlgorithm(stream, keySize)
public static PdfEncryptionAlgorithm GetPdfFileEncryptionAlgorithm( 
   Stream stream,
   out int keySize
)
public:
static PdfEncryptionAlgorithm GetPdfFileEncryptionAlgorithm( 
   Stream^ stream,
   [Out] int keySize
) 

Parameters

stream
Stream that contains the PDF file.
keySize
Returns the size in bits of the encryption key.

Return Value

The encryption algorithm.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfFile Class
PdfFile Members