Skip to content
Browse all functions

Decrypt a PDF

files/decryptpdf

decryptpdf (Decrypt a PDF) is a 1001fx API function in the group Files & PDF: POST https://api.1001fx.com/files/decryptpdf, 3 credits per call. It works as a ready-made module in Make and n8n or as a plain HTTP call.

3 credits per callHTTP APIn8nMake

Decrypts the provided PDF with the given password. The password must not be empty.

Try it in the 1001fx app

Run decryptpdf in your browser with your API key – fill the form, click Run and get the answer or the file.

decryptpdf in the 1001fx app: the form with example values
Decrypt a PDF in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/files/decryptpdf
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
multipart/form-data

Parameters

  • passwordstringrequired

    A string containing the secret password which will be further used to unlock the pdf.

    Example:
    secret
  • filefilerequired

    Encrypted PDF file.

Examples

Pdf file to be decrypted

Decrypts the pdf with given password

Input

Expects one pdf file named as file parameter: file
{
  "password": "secret",
  "files": [
    {
      "name": "encrypted-secret.pdf",
      "type": "",
      "path": "testdata/encrypted-secret.pdf"
    }
  ]
}

Output · HTTP 200

Result is the decrypted pdf.
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/files/decryptpdf' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -F 'file=@encrypted-secret.pdf' \
  -F 'password=secret'

Try decryptpdf now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.018.01.2023created
Ask 1001fx