signature.png (656 Bytes)
Please refer attached stamp.
Please do testing using shared document.
Following are the co-ordinates from HTML canvas
Ratio: 0.606060606060606
X-Axis: 368.7624750499
Y-Axis: 335.131782945737
Width:200
Height:60
And Actual converted co-ordinates while putting on document are
double shapeX = (shapes[shapeIndex].x * 72 / 150) / Convert.ToDouble(shapes[shapeIndex].ratio); // 292.05988023952085
double shapeY = (shapes[shapeIndex].y * 72 / 150) / Convert.ToDouble(shapes[shapeIndex].ratio); // 265.42437209302369
double shapeW = (shapes[shapeIndex].w * 72 / 150) / Convert.ToDouble(shapes[shapeIndex].ratio); // 158.40000000000003
double shapeH = (shapes[shapeIndex].h * 72 / 150) / Convert.ToDouble(shapes[shapeIndex].ratio); // 47.52000000000001
double yaxis = (doc.Pages[shapes[shapeIndex].p].Rect.URY - (shapeH + shapeY)); // 479.05562790697627
I have attached both working and not working document,
Please refer these document while testing.
NotWorkingForThisDocument.pdf (1.3 MB)
WorkingForThisDocument.pdf (287.5 KB)
Thanks,
Yogesh Jadhav