Protect PDF - Possible errors

Invalid encryption value

Error code

PDF9019

Error description

This error occurs when the provided encryption algorithm is not supported or the input PDF is invalid.

Error Response

{
    "error":  {
        "message": "The PDF manipulation operation has failed due to an invalid encryption value. Please change the encryption version or upload a valid PDF.",
        "documentation_url": "https://www.zoho.com/pdfeditor/help/api/v1/general-errors.html",
        "response_generated_time": 1594131798612,
        "request_url": “https://<invoked_api_request_url>",
        "errorcode": "PDF9019"
    }
}

Suggested action 

Use only supported values (AES128, AES256, or RC4128) for encryption. Verify that the input PDF is valid.

Password is missing

Error code

PDF9020

Error description

This error occurs when the input PDF is password-protected but no password was provided.

Error Response

{
    "error":  {
        "message": "Cannot decrypt PDF due to password protection. Please provide the password for the input PDF.",
        "documentation_url": "https://www.zoho.com/pdfeditor/help/api/v1/general-errors.html",
        "response_generated_time": 1594131798612,
        "request_url": “https://<invoked_api_request_url>",
        "errorcode": "PDF9020
    }
}

Suggested action 

Provide the password for the input PDF.

Invalid password

Error code

PDF9021

Error description

This error occurs when the password entered does not match the actual PDF password.

Error Response

{
    "error":  {
        "message": "The password provided for the input PDF is incorrect. Please provide the valid password for the input PDF.",
        "documentation_url": "https://www.zoho.com/pdfeditor/help/api/v1/general-errors.html",
        "response_generated_time": 1594131798612,
        "request_url": “https://<invoked_api_request_url>",
        "errorcode": "PDF9021”
    }
}

Suggested action 

Re-enter the correct password and try again.

Note: If you still find any trouble, please write to us at: support@zohopdf.com.