Skip to content
Bitaloka Docs
Protect PDF

Protect PDF

Encrypt a PDF with a password.

Request

POST https://api.bitaloka.io/v1/pdf/protect
Multipart form→ application/pdf

Parameters

NameTypeDescription
filerequired PDF file The PDF to process (multipart file field).Example: document.pdf
passwordrequired text Password needed to open the PDF.Example: s3cret-Pass

Code samples

Generated from one source and tested against the live API.

curl -sS -X POST "https://api.bitaloka.io/v1/pdf/protect" \
  -H "X-API-Key: $BITALOKA_API_KEY" \
  -F "file=@document.pdf;type=application/pdf" \
  -F 'password=s3cret-Pass' \
  --fail-with-body -o protected.pdf

Uses: curl 7.x+ · example.sh

Response

Returns the processed file as application/pdf. The samples save it as protected.pdf.

Use from an AI agent

On the Bitaloka MCP server this service is the pdf_protect tool. MCP server →

Related services