POST
https://api.pdfblocks.com/v1/add_watermark/image
Global endpoint (default)
POST
https://eu.api.pdfblocks.com/v1/add_watermark/image
European-only endpoint
Parameters
The endpoint accepts multipart/form-data request bodies with the folowing parameters:
file
Required
The content of the input PDF document.
image
Required
The content of an image to add as a watermark to each page of the PDF document.
The format of the image can be either PNG or JPEG.
transparency
optional
An integer with the transparency level for the text watermark from 0 (opaque) to 100 (transparent)
Integer value between 0 and 100
The default value is 50
margin
optional
A decimal value with the distance in inches from the border of the page to the text watermark.
Decimal value greater than 0.0
The default value is 1.0
Returns
If successful, the call returns a response with Content-Type: application/pdf with the content of the watermarked PDF document. Otherwise, this call returns an error.