Watermarks in PDF

Groupdocs.Watermark which is part of Conholdate.Total for .NET, can add watermarks in PDF documents by choosing one of the following ways.

XObjects

When Add method of Watermarker class is called, simple XObject is added to a PDF document.

Image XObject and Form XObject are used by GroupDocs.Watermark API to add ImageWatermark and TextWatermark respectively. XObjects are considered as a page real content, therefore, they are not removed by Adobe Acrobat during document sanitization.

Artifacts

The watermark can be represented by an artifact in a PDF document. The following example shows how artifact watermark can be added to a document with GroupDocs.Watermark using PdfArtifactWatermarkOptions.

AdvancedUsage.AddingWatermarks.AddWatermarksToPdf.PdfAddArtifactWatermark

Annotations

Annotation is the third type of PDF entities by which a watermark can be represented. Use the following code snippet to add watermark annotation to a PDF document using PdfAnnotationWatermarkOptions.

AdvancedUsage.AddingWatermarks.AddWatermarksToPdf.PdfAddAnnotationWatermark

You can also add print only annotation watermark to the document setting PrintOnly property of PdfAnnotationWatermarkOptions. The following code demonstrates this approach.

AdvancedUsage.AddingWatermarks.AddWatermarksToPdf.PdfAddPrintOnlyAnnotationWatermark

For more details please visit this article.