Using the demo project it's easy to put a watermark from a text in a PDF file.
What it's not easy is to alway draw the stamp (watermark) in the PDF page center when the there is a rotation. Since it's not possible to know the width and height of FormattedText object after a rotation or the size of the stamp object after the rotation.
Here's the step I do:
- I am creating a stamp and using Stamp.BindLogo to set some FormattedText to stamp on the PDF.
- Rotate the Stamp object
- Set the Stamp object location, but cannot set it because I don't know the rotated Stamp size
- Add the Stamp to the pdfStamp object