Skip to content

Instance methods

Document properties

Manage document properties for example changing the document name.

Gets document property value
Sets document property value

TIP

To see available properties:

jsx
const document = await window.Cling.document.new()
console.log(document._document._doc)

Document properties - Shorthands

Simplifies managing specific document properties which would otherwise result in bulky code sections using setProperty().

Adds a new client which will receive document on next send event.
Removes a client from document.
Tag documents in order to find them consistently.
Adds a new article where price and more can be specifed

Block management

Blocks are visible sections in the document and can be partially manipulated using the methods below.

Adds a rendered PDF to the document
Adds a interactive accept- and deny button to document
Removes a block from document

State management

Save document
Send document to client
Remove document, invalidates existing signatures