Breadcrumbs

signoAPI Android – Signer module – Class overview

This page provides an overview of the classes in the signer module (libSignoPdfSigner), sorted by functionality and groups. It contains the files and classes required to use the component; depending on the functionality used, not all of the classes listed are required.

Classes marked with an asterisk (*) are common classes that are used in both libSignoPdfSigner and libSignoSignatureCapture. libSignoPdfSigner comprises the complete API and therefore also contains the classes included in libSignoSignatureCapture.

In order to place images, signature fields or other graphic elements correctly in a PDF, the coordinate system of the PDF is decisive. The coordinates always refer to the coordinate system of a PDF; a PDF always has a resolution of 72 dpi, with point 0/0 at the top left.

Page numbers in the PDF viewer are based on a 1-based numbering system: the first page is numbered 1, so ‘page N’ refers to the Nth page in the document.

The most important class STSignoViewer can be used as a Fragment class in an Activity class. For further information, see also the STSignoViewerCreator.createSignoViewer() and STSignoViewerCreator.newInstance() methods. In this case, the android:configChanges attribute of the respective <activity> element should be edited in the Manifest file to specify that this Activity class carries out the following configuration changes.

XML
<activity
    android:name="com.demo.app.DemoActivity"
    android:configChanges="orientation|keyboard|keyboardHidden|screenSize|screenLayout">
</activity>

The libSignoPdfSigner library can be integrated into your app as a new module with the Assistant in Android Studio, and specified as a dependency within the build.gradle file of your app:

Groovy
dependencies {
    ...
    implementation project(‘:libSignoPdfSigner_x.x.x’)
}

The images required for the user interface exist in the library. To replace the existing images with your own images, you must create your own images in the respective ‘drawable’ folders in your app. The dimensions and file names of the custom images must correspond to those of the existing images.

The following images in the libSignoPdfSigner library can be replaced with your own images:

signoapi_capture_confirm.png
signoapi_capture_cancel.png
signoapi_capture_retry.png
signoapi_toolbar_back.png
signoapi_toolbar_back_pressed.png
signoapi_toolbar_logo.png
signoapi_toolbar_sign.png
signoapi_toolbar_sign_summary.png
signoapi_toolbar_save.png
signoapi_sign_dialog.png
signoapi_signinfo_cancel.png
signoapi_rect_cancel.png
signoapi_rect_confirm.png
signoapi_rect_move.png