Removes all metadata from a PDF file including keywords, creator, producer, creation date, and modification date. Returns a clean PDF file without any embedded metadata.
Request
Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
Body Params multipart/form-dataRequired
Responses
🟢200OK
application/pdf
PDF file with all metadata removed
🟠400Bad Request
🟠401Unauthorized
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.convert2pdfapi.com/v1/pdf/remove-metadata' \
--header'x-api-key: <api-key>' \
--form'pdfFile=@""' \
--form'fileName="cleaned_document"'
Response Response Example
400 - No file provided
{"status":"error","message":"PDF file is required"}