Manage image and text watermarks on all popular document formats using cURL commands. Add, find & delete watermarks on any language or platform supporting REST.
Start Free TrialGroupDocs.Watermark Cloud for cURL efficiently communicates with GroupDocs.Watermark Cloud REST APIs to manage all HTTP requests and responses for you to manage watermarks on supported document formats. It supports all useful watermarking methods such as adding, searching, updating and removing watermarks from PDF, Microsoft Office Word, Excel worksheets, presentations, Visio diagrams and image formats. You can also manage text style, size, font, color and position of the watermarks inside the whole document or restrict it to specific range of pages.
curl -v "https://api.groupdocs.cloud/v1.0/watermark" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer " \
-d "{
"FileInfo": {
"FilePath": "documents\\sample.pdf",
},
"WatermarkDetails": [
{
"TextWatermarkOptions": {
"Text": "Watermark text",
"FontFamilyName": "Arial",
"FontSize": 20.0,
"ForegroundColor": {
"Name": "red"
},
"TextAlignment": "center"
},
"Position": {
"X": 0.0,
"Y": 0.0,
"Width": 0.0,
"Height": 0.0,
"HorizontalAlignment": "Center",
"RotateAngle": 0.0,
"ConsiderParentMargins": false,
"IsBackground": false
}
}
]
}"