Add Watermark To PDF with Golang via C++
Contents
[
Hide
]
While converting an Excel file to PDF, you may have requirements to add a watermark to the PDF file. The following examples show how to add text and image watermarks to PDF while rendering to PDF.
Add text watermark to PDF
You can easily add a text watermark to PDF by specifying text and the corresponding font. Also, you can set alignment, offset, rotation, opacity, foreground/background, and scale to page in RenderingWatermark.
Add image watermark to PDF
You can add an image watermark to PDF just by specifying image bytes of an image. Also, you can set alignment, offset, rotation, opacity, foreground/background, and scale to page in RenderingWatermark.