Add Watermark To PDF with Golang via C++

While converting an Excel file to PDF, you may have a requirement to add a watermark to the PDF file. The following examples show how to add text and image watermarks to PDF while rendering.

Add text watermark to PDF

You can easily add a text watermark to a PDF by specifying the text and the corresponding font. You can also set alignment, offset, rotation, opacity, foreground/background, and scale to the page in RenderingWatermark.

Add image watermark to PDF

You can add an image watermark to a PDF simply by specifying the image bytes. You can also set alignment, offset, rotation, opacity, foreground/background, and scale to the page in RenderingWatermark.