I already have Signed PDF with multi Signatures. How can I get Positions(X,Y) and Size(Width, Height) for each?
You can try using below code snippet:
using (Document pdfDocument = new Document(dataDir + "DSC Signed.pdf"))
{
foreach (Field field in pdfDocument.Form)
{
SignatureField sf = field as SignatureField;
var width = sf.GetRectangle(true).Width;
var height = sf.GetRectangle(true).Height;
var posURX = sf.GetRectangle(true).URX;
var posURY = sf.GetRectangle(true).URY;
var posLLX = sf.GetRectangle(true).LLX;
var posLLY = sf.GetRectangle(true).LLY;
}
}
Thanks this is helpful.
1 Like