Webtest WebTest GitHub Home

PDF Step pdfVerifyEncryption

Description

This step verifies whether a PDF document is encrypted and whether the user password and owner password are correct. This step should only be executed before (and not after) decrypting an encrypted PDF document.

Parameters

description
Required? no
The description of this test step.
encrypted
Required? no
ownerPassword
Required? no
The text required to decrypt the PDF document using the owner password.
userPassword
Required? no
The text required to decrypt the PDF document using the user password.

Details

pdfVerifyEncryption Example
<webtest name="pdftest - verify encryption">
  <config .../>
  <steps>
    <invoke .../>
    <pdfVerifyEncryption description="Verify encryption"
      encrypted="yes"
      userpassword="mysecret"
      ownerpassword="mymaster"/>
    ...
  </steps>
</webtest>