Encrypt a PDF
Protects file.pdf with the password secret.
Input
{
"password": "secret",
"files": [
{
"name": "file.pdf",
"type": "",
"path": "testdata/file.pdf"
}
]
}Output · HTTP 200
{
"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'