I am trying to sign a PDF and add a visual marker for it. The PdfFileSignature.Sign method supports this, but it appears that the placement for the marker doesn’t calculate the position correctly.
var pdf = new Aspose.Pdf.Facades.PdfFileSignature();
pdf.Sign(1, true, new System.Drawing.Rectangle(100, 100, 200, 200), sig);
Try inputting various values in the Rectangle constructor. I have noticed that the PdfFileSignature class treats the signature box as if it has twice the height that I’ve specified.
In the values above, the PdfFileSignature will place the box (top left) at (100, 500), where it should place the box at (100, 300). If I change the height to “100”, then the class will place the box at (100, 300) instead of (100, 200). It seems to add an extra padding at the bottom equal to the height value.