Skip to content

  • Documentation
    • Mobile App – Signatus
    • Web App – Signatus 2 API
    • Web App – OKdokument API
    • Web App – OKdokument
  • Contact Us

Customization – Wizard SDK

  • 1. What is a Wizard
  • 2. Introduction to Wizard Javascript API Calls
  • 2.1 Integration
  • 2.2 Document signing
  • 2.3 PDF Document Processing
  • 2.4 Device Features
  • 2.5 Files & Folders
  • 2.6 Application Features
  • 2.7 System Utilities
  • 3. Example: Simple process

Customization – PDF & Form Preparation

  • PDF Forms creation
  • 1. Tags
  • 2. Acrofields
  • 3. Sample document

Integration – REST API

  • 1. Introduction
  • 2. Download
  • 3. Upload

Integration – App-to-App

  • 1. Introduction
  • 2. How does it work?
  • 3. START-ACTIVITY-FOR-RESULT (APP – SIGNATUS – APP)
  • 4. Sending data to Master Wizard via Intent
  • 5. Runtime Configuration Parameters (Display, Fields, Signing Process)

Hardware

  • 1. Android
  • 2. iOS / iPadOS
  • 3. Windows

Signatus user manual

  • 1. Introduction
  • 2. Main menu
  • 3. Signing
  • 4. Submit signed document
  • 5. Settings in detail
  • 6. Example Wizard
View Categories
  • Home
  • Documentation
  • Mobile App - Signatus
  • Customization – Wizard SDK
  • 2.4 Device Features

2.4 Device Features

The Device Features section provides access to native device capabilities.
It includes functions for using the camera, speech recognition, and QR code scanning.

These features enable interaction with device hardware and sensors directly from the application.

note (Android) #

Enables the creation of handwritten notes or drawings during wizard execution. Up to four pages of notes or drawings can be created.

Notes are initially saved in a proprietary SPD format and stored on the device as PNG images in the specified folder. If a PDF output is required, the jpgToPdf function can be used to convert the images into a PDF document.

/**
 * @param {Object} arg- Parameter JSON object.
 * @returns {void} 
 */
function note(arg);

Parameters description :

NameRequiredFormatDescription
savePathtruestringName of the folder within workspace directory to store created notes in a png format. It is a folder as there can be up to 4 notes created
srcFilePathfalsestringPath to a spd file within workspace directory
calltruestringCallback function name
colorfalsestringSet the color of the action bar at the top of the screen in hex format. For example “#ff0000“
nativeMenufalsestringnative  action bar button configuration.
Are described in the Native menu chapter

Example :

const arg = {
    "savePath" : "/tosign",
    "srcFilePath" : "/tosign/note.spd",
    "call" : "onNote"
}
note(arg);

/**
 * callback function for note function
 * @param res - result in string format
 */
function onNote(res) {
    const result = JSON.parse(res);
}

Result example :

{
	"parameter": {
		"status": "ok"
	}
}

– Native menu #

Example :

"nativeMenu": [
		{
			"id": "action_ok",
			"title": "Save note",
			"icon": "REMOVE",
			"color": "#01579b"
		},
		{
			"id": "action_pen",
			"title": "Pen",
			"icon": "/img/pen.png",
			"color": "#ff0000"
		}
	]

Description :

NameFormatDescription
nativeMenuJSON ArrayNative  action bar button configuration
nativeMenu.idstringAction bar button id.
Allowed values :
– action_ok
– action_pen
– action_eraser
nativeMenu.titlestringButton label
nativeMenu.iconstringButton icon.
Allowed values :
– REMOVE : no icon will be displayed
– path to the icon file within the workspace
nativeMenu.colorstringButton label color in hex format

scan (Android) #

Calls the Camera activity and when the image capture is complete, the image is saved as a JPEG file in the specified folder. If a callback function is defined, it is called when the scanning is finished.

/**
 * @param {Object} arg- Parameter JSON object.
 * @returns {void} 
 */
function scan(arg);

Parameters description :

NameRequiredFormatDescription
foldertruestringName of the folder within workspace directory to store captured image
filefalsestringName of file to store the scanned image. If not specified image is captured with file name {timestamp}.jpg
calltruestringCallback function name

Example :

 const arg = {
    "folder" : "/img",
    "file" : "Capture1.jpg",
    "call" : "onScan"
}
scan(arg);

**
 * callback function for scan function
 * @param res - result in string format
 */
function onScan(res) {
    const result = JSON.parse(res);
}

Result example :

{
	"parameter": "img/Capture1.jpg"
}

startSpeechRecognition(Android, iOS) #

Launches the speech recognition and, once completed, invokes a JavaScript callback function with the captured voice data.

/**
 * @param {Object} arg- Parameter JSON object.
 * @returns {void} 
 */
function startSpeechRecognition(arg);

Parameters description :

NameRequiredFormatDescription
calltruestringCallback function name

Example :

const arg = {
  "call" : "onRecognition"
};
startSpeechRecognition(arg);

/**
 * callback function for startSpeechRecognitionfunction
 * @param res - result in string format
 */
function onRecognition(res) {
    const result = JSON.parse(res);
}

Result example :

{
	"parameter": "Recognized input value"
}

getQRcode (Android, iOS) #

Launches the barcode scanning activity and, once completed, invokes a JavaScript callback function with the scanned result data.

/**
 * @param {Object} arg- Parameter JSON object.
 * @returns {void} 
 */
function getQRcode(arg);

Parameters description :

NameRequiredFormatDescription
calltruestringCallback function name

Example :

const arg = {
    "call" : "onQrCode"
}
getQRcode(arg);

/**
 * callback function for getQRcode function
 * @param res - result in string format
 */
function onQrCode(res) {
    const result = JSON.parse(res);
}

Result example :

{
	"parameter": "QR code value"
}

email (Android) #

Opens the Android system email chooser, allowing the user to select an email client. The selected client is launched with the email fields prefilled, including To, CC, BCC, subject, and message body.

/**
 * @param {Object} arg- Parameter JSON object.
 * @returns {void} 
 */
function email(arg);

Parameters description :

NameRequiredFormatDescription
emailtrueJSON ArrayArray of email address
subjecttruestringEmail subject
texttruestringEmail body
filetruestringPath to the PDF file to be send within the workspace.
ccfalseJSON ArrayArray of email address
bccfalseJSON ArrayArray of email address

Example :

const arg = {
    "email": [
        "john.smith@company.com"
    ],
    "subject": "Test email subject",
    "text": "Test email body",
    "file" : "/signed/Test1.pdf",
    "cc": [
        "john.doe@company.com"
    ],
    "bcc": [
        "thomas.deer@company.com"
    ]
}
email(arg);

openWeb (Android) #

Enables to display a web page in a wizard via embedded browser. It is possible to use the information available online and display within the wizard and combine with the process of the wizard or information available in the wizard.

Besides displaying the web content, it is possible to download a file available on web. After the user selects a file to download, the control will return to the wizard to process the file.

/**
 * @param {Object} arg- Parameter JSON object.
 * @returns {void} 
 */
function openWeb(arg);

Parameters description :

NameRequiredFormatDescription
urltruestringURL of the web page to view
calltruestringCallback function name
ssofalsebooleanIf true, requests to authenticate (Microsoft NTLM) from the web site will be served transparently using stored username and password (see saveAuthentication), default is false
logOutUrlfalsestring If sso is true, logout url defined can be used to log out current user (logOutUrl=”logout.ashx”)
keepCookiesfalsebooleanif true, cookies from the server will be kept for the subsequent openWeb invocations, default is false
keepAuthfalsebooleanIf true, authentication from the server will be kept for the subsequent openWeb invocations, default is false
showProgressfalsebooleanIf true, a progress animation will be shown until the web page is fully loaded, default is true
savePathfalsestringDirectory to save the downloaded files
colorfalsestringSet the color of the action bar at the top of the screen in hex format. For example “#ff0000“
nativeMenu
falsestringNativeĀ  action bar button configuration.
Are described in the Native menu chapter

Example :

const arg = {
    "url" : "https://www.signatus.com",
    "savePath" : "/tosign",
    "color" : "#2757F5",
    "call" : "onOpenWeb"
}
openWeb (arg);

/**
 * callback function for openWeb  function
 * @param res - result in string format
 */
function onOpenWeb(res) {
    const result = JSON.parse(res);
}

Result example :

{
	"parameter": {
		"status": "CANCEL",
		"message": "",
		"data": "",
		"code": 200
	}
}

openCustomTabs (Android) #

Enables to display a web page in a wizard via Chrome Custom Tabs.

/**
 * @param {Object} arg- Parameter JSON object.
 * @returns {void} 
 */
function openCustomTabs(arg);

Parameters description :

NameRequiredFormatDescription
urltruestringURL of the web page to view
colorfalsestringSet the color of the action bar at the top of the screen in hex format. For example “#ff0000“

Example :

const arg = {
    "url" : "https://www.signatus.com",
    "color" : "#2757F5"
}
openCustomTabs(arg);

Updated on 05/02/2026
2.3 PDF Document Processing2.5 Files & Folders
Table of Contents
  • note (Android)
  • - Native menu
  • scan (Android)
  • startSpeechRecognition(Android, iOS)
  • getQRcode (Android, iOS)
  • email (Android)
  • openWeb (Android)
  • openCustomTabs (Android)
  • Documentation
    • Mobile App – Signatus
    • Web App – Signatus 2 API
    • Web App – OKdokument API
    • Web App – OKdokument
  • Contact Us
Proudly powered by WordPress