addwatermark2pdf - Add Watermark to PDF
Places provided image on every page of provided pdf.
file1
binary
Pdf file to add watermark to
file2
binary
Image to use as watermark.
watermarkSize
number
Size of the watermark relative to the individual page width. Image ratio is preserved. Defaults to 0.15.
Minimum: 1e-8
Maximum: 1
Example:
0.15
position
string
Position of the watermark. Defaults to SE.
Possible values are: SE, NE, NC, NW, SC, SW, C, CE, CW
Example:
C
xMargin
number
Margin in pixel. The x=0 coordinate of the page is in the bottom left. To move your image to the left provide a negative margin. Defaults to -20.
Example:
20
yMargin
number
Margin in pixel. The y=0 coordinate of the page is in the bottom left. To move your image down provide a negative margin. Defaults to 20.
Example:
20
opacity
number
Opacity of your image. Defaults to 1.
Minimum: 1e-8
Maximum: 1
Example:
1