addwatermark2pdf - Add Watermark to PDF
Places provided image on every page of provided pdf.
file1binary
Pdf file to add watermark to
file2binary
Image to use as watermark.
watermarkSizenumber
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.15positionstring
Position of the watermark. Defaults to SE.
Possible values are: SE, NE, NC, NW, SC, SW, C, CE, CW
Example:
CxMarginnumber
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:
20yMarginnumber
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:
20opacitynumber
Opacity of your image. Defaults to 1.
Minimum: 1e-8
Maximum: 1
Example:
1