You can define where signatures and initials will be placed in PDF or DOCX documents using anchor texts.
Just insert an identifier, such as "<<signer1>>", in the document, and the platform will automatically position the signature or initial exactly where this text appears.
Tip: use << >> to avoid conflicts with common words in the document.
Fields
signature_placement: defines the location of the signature using an anchor text.
Example: "signature_placement": "<<signer1>>"
rubrica_placement: defines the location of the initial using an anchor text.
Example: "rubrica_placement": "<<signer1Rubrica>>"
If the text appears more than once, the signature or initial will be placed in all locations.
Where to use anchors
Anchors can be configured in the following endpoints:
How does ZapSign calculate where these signatures should be placed? According to the calculations below:
We have the x-axis and y-axis starting at the lower left corner of each page.
The position shown above, of the signature of "Fulano Silveira" in the right side of the document, would correspond to the JSON:
Below is a detailed explanation of each of the fields.
relative_position_left e relative_position_bottom: Positioning the signature on the document
It is necessary to take some care so that signatures are not left out of the document. For example, if relative_position_left is 80, relative_size_x must not be greater than 20 (totaling 100 which is the X axis). If this sum is greater than 100, the signature would be partly outside the document.
Mathematically speaking, your object must respect the following limits:
0 <= relative_size_y <= 100
0 <= relative_size_x <= 100
0 <= relative_position_bottom <= 100
0 <= relative_position_left <= 100
relative_size_x e relative_size_y: Keeping the signature proportionate
If your PDF is a vertical A4 sheet (most common), it is recommended to always use relative_size_x: 19.55 and relative_size_y: 9.42, as in the example above. If you want to increase the subscription size, multiply them by the same number so that the ratio is maintained.
Note: if it is a rubric with type "visto", relative_size_x: 13.76 and relative_size_y: 9.42 are recommended
If the PDF is a horizontal A4 sheet, relative_size_x: 15.05 and relative_size_y: 12.13 are recommended.
Note: if it is a rubric with type "visto", relative_size_x: 10.58 and relative_size_y: 12.13 is recommended
page: How to define the page where the signature will be placed
The page parameter is equivalent to each page of the document, starting at 0. If you want to place the signature in the same place on all pages, you need to pass the object more than once. For example:
Frequently asked questions
How do I know if the placement of signatures worked? A.: You will only know after the document is signed, directly checking the PDF. Validations must be done on your side.
If the positioning was done wrong, can I change it? A.: To overwrite the placement of the previous signatures, just make a new POST for this route, and all previous placements will be deleted and replaced by the new ones.
How can I cancel placement of signatures? A.: Just make a post with the rubrics object being an empty array. E.g.: {"rubricas":[ ]}
Is the signed document updated whenever I change the placement of the signatures? A.: No!!! The new placement will only be applied after a new signer signs the document. Thus, the document will not be updated every time you change the placement of signatures, but only when a signer signs.
{
"page": 0, //1st document page
"relative_position_bottom": 42.50, //distance from 0 to 100 from the bottom edge of the page
"relative_position_left": 65.71, //distance from 0 to 100 from the left edge of the page
"relative_size_x": 19.55, //size from 0 to 100 of signature compared to page width
"relative_size_y": 9.42, //size from 0 to 100 of signature compared to page height
"signer_token": "cf1c0b7a-03d3-468b-97ce-3061e3abcdefg" //signer token of "Fulano Silveira"
}