Watermark remains inside the page


I am using the Stamper to stamp some PDF documents with the following code:

using (var ms = new MemoryStream(10 * 1024))
using (var doc = new PDFDoc(bytes, bytes.Length))
    using (var s = new Stamper(Stamper.SizeType.e_relative_scale, 0.5, 0.5))
        s.SetAlignment(Stamper.HorizontalAlignment.e_horizontal_center, Stamper.VerticalAlignment.e_vertical_center);
        s.SetFontColor(new ColorPt(0.5, 0.5, 1)); // Set text color to red.
        s.SetPosition(0, 0, false);
        s.SetAlignment(Stamper.HorizontalAlignment.e_horizontal_left, Stamper.VerticalAlignment.e_vertical_top);
        var fnt = Font.Create(doc.GetSDFDoc(), "Arial Unicode", "abcdefghijklmnopqrstuvwxyz1234567890-+/()@\"'[]:;.,\\|ABCDEFGHIJKLMNOPQRSTUVWXYZ");
        s.SetSize(Stamper.SizeType.e_font_size, 16, 16);
        s.StampText(doc, watermarkText, new PageSet(1, doc.GetPageCount()));
    doc.Save(ms, SDFDoc.SaveOptions.e_linearized);
    return ms.ToArray();

The watermark gets added and everything seems fine.
What I don’t understad is the following:
Since I say to put it in (0,0) and at -24 degrees, I would expect it to go outisde the page. Are you ensuring that the watermark remains inside the page as a whole internally?
Thank you! :slight_smile: