cURL example
curl -X POST https://itextmaster.com/api/external/pdf-tools/add-watermark \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{
"files": [
{ "name": "input.pdf", "dataBase64": "JVBERi0xLjcK..." }
],
"options": {"type":"text","text":"CONFIDENTIAL","position":"diagonal","opacity":0.25,"fontSize":48}
}' \
--output watermarked.pdf