BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

IsEncrypted Method

Checks if a PDF file is encrypted.

Function IsEncrypted(InputFileName As String) As Boolean

bool IsEncrypted(string InputFileName)

boolean IsEncrypted(String InputFileName) throws PDFProcessorException

Parameters

Return Values

True if the given PDF file is encrypted; False otherwise.

Remarks

N/A.

Example Usage

Set oProcessor = CreateObject("easyPDF.PDFProcessor.8")
bProtected = oProcessor.IsEncrypted("C:\test\input.pdf")
If bProtected Then
    MsgBox "This file is encrypted."
End If