10.1 Signing location with coordinates
The location of a signature can be determined by using the coordinates (Left, Top, Height, Width and Page number in the Add Document to Package call).
Since eSignatures 5.1 the page number can be negative to count backwards from the last page. For example, -1 places the signature field on the last page, -2 places it on the second-last, and so on. Make sure the number (both negative and positive) does not exceed the number of pages in your document however.
10.1.1 Example request
In this example, a signature field of 100 points wide and 200 points high will be placed in the top left corner of the page, at 200 points from the top and 100 points from the left.
{
"Document": "JVBERi....rest-of-the-document",
"DocumentName" : "Invoice",
"DocumentLanguage" : "en",
"ExternalDocumentReference" : "INV-2018-04-01-0038",
"SigningFields" : [
{
"PageNumber" : 1,
"Width" : "100",
"Height" : "200",
"Left" : "100",
"Top" : "200",
"Label" : "Coordinates Sig"
}]
}
10.1.2 Example response
{
"DocumentId": "e0cb4de4-673d-49fc-9bd1-7c81248984f9",
"CreationTimestamp": "2018-03-28T08:54:38+00:00",
"Locations": [
{
"Id": "8a96613f-b6ed-4227-9bde-c20d3ee0c9d6",
"Label": "Coordinates Sig",
"PageNumber": 1
}
]
}