MobbSignView includes toolbars with all the actions of the signing process. To trigger the actions from your own interface, call the methods of the view.
| # | Step | Call |
|---|
| 1 | Show the document | loadPDFDocument |
| 2 | Capture the signature | signDocument |
| 3 | Confirm it | stampDocument |
| 4 | Finish | endProcess |
| Method | Action |
|---|
- (void)signDocument; | Starts the capture: the user can draw their signature. |
- (void)stampDocument; | Signs the PDF with the signature captured. Triggers onDocumentSigned. |
- (void)deleteSignature; | Discards the signature captured, before it is confirmed. |
- (void)endProcess; | Ends the process once the document is complete. Triggers onProcessEnd. |
For several signers on the same device, repeat signDocument and stampDocument for each of them before calling endProcess.
Navigation and zoom
| Method | Action |
|---|
- (BOOL)goToNextPage; · - (BOOL)goToPreviousPage; | Go to the next or previous page. |
- (BOOL)goToFirstPage; · - (BOOL)goToLastPage; | Go to the first or last page. |
- (void)zoomIn; · - (void)zoomOut; | Zoom in or out. |
If the document contains form fields, onDocumentShown receives editable = YES. Call saveForms to save the values before signing. You can also read and write the fields from your code:
| Method | Description |
|---|
- (BOOL)setValue:(NSString *)value toField:(NSString *)fieldName; | Sets the value of a field. |
- (NSString *)getValueOfField:(NSString *)fieldName; | Returns the value of a field. |
- (NSDictionary *)getFields; | Returns the names and values of all the fields. |