XFINIUM.PDF Documentation
IsPdfFileEncrypted Method



Xfinium.Pdf.Core Namespace > PdfFile Class : IsPdfFileEncrypted Method
Stream that contains the PDF file.
Verifies if the PDF file is encrypted.
Syntax
'Declaration
 
Public Shared Function IsPdfFileEncrypted( _
   ByVal stream As Stream _
) As Boolean
'Usage
 
Dim stream As Stream
Dim value As Boolean
 
value = PdfFile.IsPdfFileEncrypted(stream)
public static bool IsPdfFileEncrypted( 
   Stream stream
)
public:
static bool IsPdfFileEncrypted( 
   Stream^ stream
) 

Parameters

stream
Stream that contains the PDF file.

Return Value

True if the PDF file is encrypted, false otherwise.
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