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.3 PDF Document Processing

2.3 PDF Document Processing

The PDF Document Processing section provides functions for working with PDF documents.
It includes operations such as form handling, metadata retrieval, and other document-level processing tasks.

These APIs enable inspection, preparation, and manipulation of PDF documents within the application.

formPdf (Android, iOS) #

Updates the AcroForm fields of the specified PDF using values provided in a JSON object.

/**
 * @param {Object} arg- Parameter JSON object.
 * @returns {boolean} - Returns true if the pdf were successfully updated, false otherwise.
 */
function formPdf (arg);

Parameters description :

NameRequiredFormatDescription
filetruestringPath to the target PDF file within the workspace.
datatrueJSON ObjectValue pairs must match the names of the corresponding AcroForm fields
csvfalsestringPath to the target file within the workspace. Can be used to save an additional copy of the field values as a CSV (Comma-Separated Values) file
flattenfalsebooleanIf true, fields will be flattened after AcroForm fields update. Default false

Example :

const arg = {
    "file": "/tosign/Test1.pdf",
    "data" : {
        "TC_text" : "Some text",
        "CR_checkbox" : "Yes",
        "RO_radio" : "B"
    },
    "csv" : "/csv/Test1.csv",
    "flatten" : false
}
const isSuccess = formPdf(arg);

mergePdf (Android) #

Combines multiple PDF documents into a single PDF for signing. This can be used when individual documents do not need to be signed separately, allowing all documents to be signed in one step and reducing both the number of signatures and the overall signing time.

/**
 * @param {Object} arg- Parameter JSON object.
 * @returns {boolean} - Returns true if the PDF were successfully merged, false otherwise.
 */
function mergePdf(arg);

Parameters description :

NameRequiredFormatDescription
filetruestringPath to the final PDF file within the workspace.
listtrueJSON ArrayJSON Array of JSON Objects
list.pathtruestringPath to the PDF file within the workspace.
list.ordertrueintOrder in final pdf

Example :

const arg = {
    "file": "/new/Final.pdf",
    "list": [
        {
            "path": "/pdf/Test1.pdf",
            "order": 1
        },
        {
            "path": "/pdf/Test2.pdf",
            "order": 2
        }
    ]
};
const isSuccess = mergePdf(arg);

addJpgToPdf   (Android) #

Adds one or more images to the end of a PDF document. The images are placed on a new page that becomes the document’s last page. Up to two images can be placed on a single page.

/**
 * @param {Object} arg- Parameter JSON object.
 * @returns {boolean} - Returns true if the images were successfully added, false otherwise.
 */
function addJpgToPdf(arg);

Parameters description :

NameRequiredFormatDescription
filetruestringpath to the target PDF file within the workspace.
listtrueJSON ArrayJSON Array of JSON Objects with image paths
list.pathtruestringPath to the image file within the workspace

Example :

const arg = {
    "file": "/pdf/Test1.pdf",
    "list": [
        {
            "path": "/img/image1.jpg"
        },
        {
            "path": "/img/image2.jpg"
        }
    ]
};
const isSuccess = addJpgToPdf(arg);

jpgToPdf (Android) #

Creates a new PDF file with one JPG image per page where JPG images come from a list of existing files. Returns true if successful.

/**
 * @param {Object} arg- Parameter JSON object.
 * @returns {boolean} - Returns true if the PDF were successfully created, false otherwise.
 */
function jpgToPdf(arg);

Parameters description :

NameRequiredFormatDescription
filetruestringPath to the target PDF file within the workspace.
listtrueJSON ArrayJSON Array of JSON Objects with image paths
list.pathtruestringPath to the image file within the workspace

Example :

const arg = {
    "file": "/new/Test1.pdf",
    "list": [
        {
            "path": "/img/image1.jpg"
        },
        {
            "path": "/img/image2.jpg"
        }
    ]
};
const isSuccess = jpgToPdf(arg);

Note: The file list can be obtained as output of function ‚dirlist()‘

loadAcroformData (Android, iOS) #

Converts the information from all Acroform fields of a PDF document to a JSON structure suitable for editing the information in a SIGNATUS form.

/**
 * @param {Object} arg- Parameter JSON object.
 * @returns {string} - Returns PDF acroform data in JSON format as string
 */
function loadAcroformData (arg);

Parameters description :

NameRequiredFormatDescription
filetruestringPath to the target PDF file within the workspace.

Example :

const arg = {
    "file": "/tosign/Test1.pdf"
}
const res = loadAcroformData (arg);
const result = JSON.parse(res);

Result example :

{
	"CR_checkbox": "Off",
	"CO_checkbox": "Yes",
	"RO_radio": "Off",
	"DW_text": "01.12.2025",
	"SC_signature": "",
	"CBO_combo": "A",
	"TO_text": "",
	"TC_text": "",
	"TOA_text": "Value1",
	"SO_signature": ""
}

getPdfInfo (Android) #

Returns metadata from a PDF file downloaded to the device through the wizard, such as Author, Title, Subject, and Keywords. This information is read from the corresponding metadata fields within the PDF and can be used later during the wizard workflow.

/**
 * @param {Object} arg- Parameter JSON object.
 * @returns {string} - Returns PDF info data in JSON format as string
 */
function getPDFInfo (arg);

Parameters description :

NameRequiredFormatDescription
pathtruestringpath to the target PDF file within the workspace.
valuestrueJSON ArrayJSON Array with keywords names

Example :

const arg = {
    "path": "/tosign/Test1.pdf",
    "values": ["Author", "Title"]
}
const res = getPdfInfo(arg);
const result = JSON.parse(res);

Result example :

{
	"Author": "John Doe",
	"Title": "PDF for testing"
}

Updated on 04/02/2026
2.2 Document signing2.4 Device Features
Table of Contents
  • formPdf (Android, iOS)
  • mergePdf (Android)
  • addJpgToPdf   (Android)
  • jpgToPdf (Android)
  • loadAcroformData (Android, iOS)
  • getPdfInfo (Android)
  • Documentation
    • Mobile App – Signatus
    • Web App – Signatus 2 API
    • Web App – OKdokument API
    • Web App – OKdokument
  • Contact Us
Proudly powered by WordPress