Skip to main content

Signing process

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.

#StepCall
1Show the documentloadPDFDocument
2Capture the signaturesignDocument
3Confirm itstampDocument
4FinishendProcess
MethodAction
- (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.

MethodAction
- (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.

Form fields​

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:

MethodDescription
- (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.