This example creates a simple text stamp and add it to the PDF document.
This example creates a text stamp with red colored text "TOP SECRET". The stamp will appear on every page. Furthermore the stamp will be rotated about 60 degrees and the opacity will be set to 10%.
The following example will create an image stamp and a text stamp, which will be positioned in the right bottom corner. The image stamp will be used on odd pages, while the text stamp will be used on all pages (or better even and odd).
The example uses a PNG file. So it uses the SetaPDF_PNGStamp class.