Constructor
new Stamp(opts)
Creates a Stamp
Parameters:
Name | Type | Description |
---|---|---|
opts |
object | The configuration options. |
Methods
calculateFlyImageDimensions(uuid, pageNumber, imgToStampWidth, imgToStampHeight, floatingImageWidth, floatingImageHeight) → {Promise.<*>}
Calculate fly image dimensions
Parameters:
Name | Type | Description |
---|---|---|
uuid |
UUID |
|
pageNumber |
Page number |
|
imgToStampWidth |
Stamp image width |
|
imgToStampHeight |
Stamp image height |
|
floatingImageWidth |
Floating image width |
|
floatingImageHeight |
Floating image height |
Returns:
- Type
- Promise.<*>
calculateFlyImageDimensions(uuid, pageNumber, imgToStampWidth, imgToStampHeight, floatingImageWidth, floatingImageHeight) → {Promise.<*>}
Calculate fly image dimensions
Parameters:
Name | Type | Description |
---|---|---|
uuid |
UUID |
|
pageNumber |
Page number |
|
imgToStampWidth |
Stamp image width |
|
imgToStampHeight |
Stamp image height |
|
floatingImageWidth |
Floating image width |
|
floatingImageHeight |
Floating image height |
Returns:
- Type
- Promise.<*>
calculateStampCoordinates(imgToStampWidth, imgToStampHeight, floatingDivWidth, floatingDivHeight, exprX, exprY, stampType, stampAlign) → {Promise.<*>}
Calculate stamp coordinates
Parameters:
Name | Type | Description |
---|---|---|
imgToStampWidth |
Stamp image width |
|
imgToStampHeight |
Stamp image height |
|
floatingDivWidth |
Floating div width |
|
floatingDivHeight |
Floating div height |
|
exprX |
Expr X |
|
exprY |
Expr Y |
|
stampType |
Stamp type |
|
stampAlign |
Stamp aling |
Returns:
- Type
- Promise.<*>
calculateStampCoordinates(imgToStampWidth, imgToStampHeight, floatingDivWidth, floatingDivHeight, exprX, exprY, stampType, stampAlign) → {Promise.<*>}
Calculate stamp coordinates
Parameters:
Name | Type | Description |
---|---|---|
imgToStampWidth |
Stamp image width |
|
imgToStampHeight |
Stamp image height |
|
floatingDivWidth |
Floating div width |
|
floatingDivHeight |
Floating div height |
|
exprX |
Expr X |
|
exprY |
Expr Y |
|
stampType |
Stamp type |
|
stampAlign |
Stamp aling |
Returns:
- Type
- Promise.<*>
calculateStampExpressions(imgToStampWidth, imgToStampHeight, posX, posY) → {Promise.<*>}
Calculate stamp expressions
Parameters:
Name | Type | Description |
---|---|---|
imgToStampWidth |
Stamp image width |
|
imgToStampHeight |
Stamp image height |
|
posX |
X position |
|
posY |
Y position |
Returns:
- Type
- Promise.<*>
calculateStampExpressions(imgToStampWidth, imgToStampHeight, posX, posY) → {Promise.<*>}
Calculate stamp expressions
Parameters:
Name | Type | Description |
---|---|---|
imgToStampWidth |
Stamp image width |
|
imgToStampHeight |
Stamp image height |
|
posX |
X position |
|
posY |
Y position |
Returns:
- Type
- Promise.<*>
getPersonalStampImage(uuid, imgId, id) → {Promise.<*>}
Get personal stamp images
Parameters:
Name | Type | Description |
---|---|---|
uuid |
The UUID of the node |
|
imgId |
The UUID of the image |
|
id |
ID |
Returns:
- Type
- Promise.<*>
getPersonalStampImage(uuid, imgId, id) → {Promise.<*>}
Get personal stamp images
Parameters:
Name | Type | Description |
---|---|---|
uuid |
The UUID of the node |
|
imgId |
The UUID of the image |
|
id |
ID |
Returns:
- Type
- Promise.<*>
getPersonalStamps() → {Promise.<*>}
Get personal stamps
Returns:
- Type
- Promise.<*>
getPersonalStamps() → {Promise.<*>}
Get personal stamps
Returns:
- Type
- Promise.<*>
getStampBarcodeByPk(itemId, docId) → {Promise.<*>}
Get stamp text
Parameters:
Name | Type | Description |
---|---|---|
itemId |
Item id |
|
docId |
Document id |
Returns:
- Type
- Promise.<*>
getStampBarcodeByPk(itemId, docId) → {Promise.<*>}
Get stamp text
Parameters:
Name | Type | Description |
---|---|---|
itemId |
Item id |
|
docId |
Document id |
Returns:
- Type
- Promise.<*>
getStampImageByPk(itemId, docId) → {Promise.<*>}
Get stamp image
Parameters:
Name | Type | Description |
---|---|---|
itemId |
Item id |
|
docId |
Document id |
Returns:
- Type
- Promise.<*>
getStampImageByPk(itemId, docId) → {Promise.<*>}
Get stamp image
Parameters:
Name | Type | Description |
---|---|---|
itemId |
Item id |
|
docId |
Document id |
Returns:
- Type
- Promise.<*>
getStampList() → {Promise.<*>}
Get all available stamps
Returns:
- Type
- Promise.<*>
getStampList() → {Promise.<*>}
Get all available stamps
Returns:
- Type
- Promise.<*>
getStampTextByPk(itemId, docId) → {Promise.<*>}
Get stamp text
Parameters:
Name | Type | Description |
---|---|---|
itemId |
Item id |
|
docId |
Document id |
Returns:
- Type
- Promise.<*>
getStampTextByPk(itemId, docId) → {Promise.<*>}
Get stamp text
Parameters:
Name | Type | Description |
---|---|---|
itemId |
Item id |
|
docId |
Document id |
Returns:
- Type
- Promise.<*>
setRestUrl(restUrl)
Set the rest url
Parameters:
Name | Type | Description |
---|---|---|
restUrl |
The rest url |
setRestUrl(restUrl)
Set the rest url
Parameters:
Name | Type | Description |
---|---|---|
restUrl |
The rest url |
setToken(token)
Set the token in Node variables
Parameters:
Name | Type | Description |
---|---|---|
token |
The authorization token value |
setToken(token)
Set the token in Node variables
Parameters:
Name | Type | Description |
---|---|---|
token |
The authorization token value |
stampBarcode(uuid, id)
Stamp barcode in document
Parameters:
Name | Type | Description |
---|---|---|
uuid |
UUID |
|
id |
ID |
stampBarcode(uuid, id)
Stamp barcode in document
Parameters:
Name | Type | Description |
---|---|---|
uuid |
UUID |
|
id |
ID |
stampImage(uuid, id)
Stamp image in document
Parameters:
Name | Type | Description |
---|---|---|
uuid |
UUID |
|
id |
ID |
stampImage(uuid, id)
Stamp image in document
Parameters:
Name | Type | Description |
---|---|---|
uuid |
UUID |
|
id |
ID |
stampImageCustom(uuid, id, exprX, exprY, range, personalStampUuid) → {Promise.<*>}
Stamp image custom
Parameters:
Name | Type | Description |
---|---|---|
uuid |
UUID |
|
id |
ID |
|
exprX |
X |
|
exprY |
Y |
|
range |
Range |
|
personalStampUuid |
Personal stamp uuid |
Returns:
- Type
- Promise.<*>
stampImageCustom(uuid, id, exprX, exprY, range, personalStampUuid) → {Promise.<*>}
Stamp image custom
Parameters:
Name | Type | Description |
---|---|---|
uuid |
UUID |
|
id |
ID |
|
exprX |
X |
|
exprY |
Y |
|
range |
Range |
|
personalStampUuid |
Personal stamp uuid |
Returns:
- Type
- Promise.<*>
stampText(uuid, id)
Stamp text in document
Parameters:
Name | Type | Description |
---|---|---|
uuid |
UUID |
|
id |
ID |
stampText(uuid, id)
Stamp text in document
Parameters:
Name | Type | Description |
---|---|---|
uuid |
UUID |
|
id |
ID |