Contact usRequest a demo

Configuring native document collaboration

Native document collaboration is a variety of document collaboration that uses the Apryse WebViewer to render documents in the browser. It supports annotations, signing, remote control, and document-level actions such as printing and saving.

Prerequisites

Before configuring native document collaboration, check that your installation meets the general prerequisites for document collaboration.

The variety of document collaboration used is set in the configuration property com.unblu.documentcobrowsing.technology. Native document collaboration is the default variety.

Native document collaboration requires Apryse licenses for the WebViewer and related features. Normally, these licenses are part of the Unblu Server license. If they aren’t, refer to Apryse licenses.

General configuration options

For information on general configuration options, refer to the section General configuration options of the article Configuring and manipulating collaboration layers.

Apryse licenses

Native document collaboration requires licenses for different features of the Apryse WebViewer. Normally, these licenses are part of the Unblu Server license. If they aren’t present in your license, you can configure the individual Apryse licenses with the following configuration properties:

Configuration properties

The following configuration properties are set in the CONVERSATION_TEMPLATE scope:

UI theming

You can configure the look and feel of the native document collaboration UI. Refer to Native document collaboration theming.

Document signing

Participants allowed to sign PDF documents can do so during a native document collaboration session. Unblu supports two signing modes:

  • Cryptographic signing: the server adds a digital signature to the PDF using a PKCS #12 certificate. The document is tamper-proof and locks after signing. Adobe Acrobat and other PDF readers verify the signature and display the configured reason, signer information, location, and date.

  • Image-only signing: the server adds an image of the signature to the PDF without cryptographic validation. The document isn’t locked or tamper-proof.

Signing mode

By default, image-only signing is enabled. To enable cryptographic signing instead, set com.unblu.documentcobrowsing.server.useCryptographicPdfSignature to true.

Setting up a PKCS #12 certificate

Cryptographic signing requires a PKCS #12 private keyfile containing a private key, public key, and certificate. Configure the keyfile and its password with the following configuration properties:

Unlike the other document signing configuration properties, these two are set in the GLOBAL or ACCOUNT scope, not in the CONVERSATION_TEMPLATE scope. The same keyfile is used for all conversation templates in an account or installation.

To generate a self-signed keyfile with openssl for testing, run the following commands in your terminal:

# 1. Create a private key and self-signed certificate
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem \
  -sha256 -days 365 \
  -subj "/C=CH/ST=Basel/O=Your organisation/CN=signing.example.com" (1)

# 2. Export the key and certificate as a PKCS #12 keyfile
openssl pkcs12 -export -out signing.p12 -inkey key.pem -in cert.pem
1 Adapt this line to your requirements.

The second command prompts for an export password. Use this password as the value of com.unblu.documentcobrowsing.server.pkcs12KeyfilePassword.

To encode the keyfile as base64 for com.unblu.documentcobrowsing.server.pkcs12Keyfile:

# Linux idiom (on macOS, use: base64 -i signing.p12 -o signing.p12.b64)
base64 signing.p12 > signing.p12.b64

Anyone with access to the private key can produce signatures that appear to come from your organisation. For production environments, use a keyfile signed by a trusted certificate authority so that recipients of signed documents don’t see "untrusted signature" warnings in their PDF reader.

For more information on generating custom signing certificates, refer to the Apryse guide on custom digital signature certificates.

Signer input fields

The signing dialog that’s shown to users can include optional fields for location and contact information. Control the visibility and requirement of these fields with the following properties:

Drawn signatures must contain a minimum number of points to be considered valid. Configure this threshold with com.unblu.conversation.collaboration.document.sign.minSignaturePoints.

Signature appearance

The following properties control how the signature appears in the signed PDF:

Signing reason

com.unblu.documentcobrowsing.server.signatureReason specifies the reason recorded in the signature metadata of the PDF. The reason is visible when the user inspects the signature in a PDF reader. The template supports the variables ${personId} and ${sourceId}.

Signed file naming

When Unblu signs a document, it creates a new file in the conversation with a name derived from the original. The following properties determine the filename:

Unsupported collaboration tools

Native document collaboration doesn’t support the collaboration tools mark mode and scroll lock. It provides its own equivalent tools.

See also