Skip to content
Browse all functions

Encrypt a PDF

files/encryptpdf

encryptpdf (Encrypt a PDF) is a 1001fx API function in the group Files & PDF: POST https://api.1001fx.com/files/encryptpdf, 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

Encrypts the uploaded PDF with the given password. The password must not be empty.

Try it in the 1001fx app

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

encryptpdf in the 1001fx app: the form with example values
Encrypt a PDF in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/files/encryptpdf
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 lock the pdf.

    Example:
    secret
  • filefilerequired

    PDF file to be encrypted.

Examples

Encrypt a PDF

Protects file.pdf with the password secret.

Input

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

Output · HTTP 200

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

Try encryptpdf 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