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.

bool IsEncrypted(string InputFileName)


Function IsEncrypted(InputFileName As String) As Boolean


def IsEncrypted(self, InputFileName)


boolean IsEncrypted(String InputFileName) throws PDFProcessorException


function IsEncrypted($InputFileName) 


BclPrcResult IsEncrypted(const BclPDFProcessorSettings* pSettings,
                         const wchar_t* InputFileName,
                         BclBool* poutVal);
Function IsEncrypted(InputFileName As String) As Boolean


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