Hello,
I've been re-programming the standard sdkAddSignature.js which comes with the SDK for Acrobat 7. I get to the point where it places a signature and signs the document. So I've proven for myself that the script works.
But now I'd like to add a few varieties to the script...
I'd like to be able to read the page size, which should trigger the corresponding values for the placement of the signature. My idea was that I could do this with the this.getPageBox("Crop") and then referring to it as a var in the scripting.
So the functionality would basically be as follows:
The script reads the open document for page-size, set this as the var. With "if" programming I would get to the appropriate values, which then make a signature field with the corresponding page-size. After which the signature is silently placed in the created signature-field and silently saved.
I hope I'm clear enough with my question and it is actually possible what I want to do.
Converting coordinates in Acrobat" by Thom Parker?
Not only will you need the page size but you may have to adjust for the rotated display space. Thom shows the undocumented "Matrix2D" object to rotate the signature page quads as necessary.
George Kaiser