Skip to end of metadata
Go to start of metadata

 

If you have a problem understanding how the action works, check: Automatic tasks, Conditional execution, Components params

Basic information

Category: Attachment

Available from version: 1.0.23

Description

The component adds a watermark to documents in PDF format of a specified class of documents attached to the process. The revised document file is added as a new document version. The original document (without the watermark) is available in the oldest version of the document.

Configuration parameters

Parameter name

From version

Description

Paremeter type

Default value

Field type

Comments and restrictions

Watermark type*

1.0.1

Specifies what type of watermark is.

Text

 

Values list

Displayed valuePassed value
BARCODEEncodes the value of the Text parameter into a barcode with the specified format defined in Format parameter. The watermark on the document is a barcode.
TEXTThe value of the Text parameter is applied to the document as an explicit, unencoded watermark.
Document class*1.0.1Name of the document class whose documents will be modified by inserting a watermark.Text Values list 
Text*1.0.1

Takes the text value that is used to create the watermark. In order to use document index values, the index id should be enclosed in curly braces {}. It is possible to use more than one index value in a parameter. Each subsequent index must be followed by curly braces.

Example:

Case number: "{8}, Registration Date {9}"

Watermark text ->

Case number: 433589, Registration Date: 13-02-2021


It is also possible to use special keywords that return information about the user, process id and activity id. All available values are listed in the next column.

 

Example:

"Username: {USER_NAME}, Date: {CURRENT_DATE}"

Watermark text ->

"Username: admin, Date: 2022-10-21"


Text Editable field

Any typed index ids in the text string must exist in the document class specified by the Document Class parameter. If the document being viewed does not contain an index value (it is empty) whose id is given in curly braces in this parameter, the id will be replaced with the empty string "".

KeywordDescription
{CURRENT_DATE}Current date in yyyy-MM-dd format.
{CURRENT_DATE_AND_TIME}Current date and time in yyyy-MM-dd HH-mm-ss format.
{PROCESS_ID}Process id.
{ACTIVITY_ID}Activity id.
{USER_NAME}User name.
{USER_EMAIL}User email.
{USER_FULL_NAME}User full name that consists of first and last name.
{USER_FIRST_NAME}User first name.
{USER_LAST_NAME}User last name.
{USER_NUMBER}User number.
Page corner*1.0.1

Specifies relative to which of the four corners of the document page the position of the watermark will be calculated based on the Position X% and Position Y% parameters.

 

More information...

TextTOP_LEFTValues list

Pay attention to the corresponding values of the Position X% and PositionY % parameters, because depending on the value of the Alignment, Anchor parameter, and the size of the watermark, the watermark may extend beyond the document page, i.e. be partially or completely invisible.

Available values
TOP_LEFT
TOP_RIGHT
BOTTOM_LEFT
BOTTOM_RIGHT


Anchor*1.0.1

Specifies a point in the circumference or in the center of the watermark from which the position of the watermark is determined based on the values of parameters Position X% and Position Y%.

 

More information...

TextBOTTOM_LEFTValues list
Available values
TOP_LEFT
TOP_MIDDLE
TOP_RIGHT
CENTER_LEFT
CENTER_MIDDLE
CENTER_RIGHT
BOTTOM_LEFT
BOTTOM_MIDDLE
BOTTOM_RIGHT
Position X%*1.0.1Indicates the X (horizontal) position of the watermark in percent relative to the document page dimensions. The position is set based on the selected page corner in the Alignment parameter.Integer5Editable fieldValue between 0 and 100.
PositionY%*1.0.1Indicates the Y (vertical) position of the watermark in percent relative to the document page dimensions. The position is set based on the selected page corner in the Alignment parameter.Integer10Editable fieldValue between 0 and 100.
Opacity*1.0.1Specifies the degree of visibility of the inserted watermark.Float1Editable field
  •  Value 0 (or less)

The element is fully transparent (invisible).

  • Value between (0, 1)

The item is partially transparent.

  • Value 1 (or more)

The element is fully opaque (uniform).

Rotation degrees*1.0.1Specifies rotation of the watermark by the specified degrees amount. The text watermark is rotated clockwise. However, the direction of rotation of the barcode watermark depends on the value of the Rotation mechanism parameter.Float0Editable field 
Remove password from the file*1.0.2Removes the file's password that protects it from being modified. The file's new version has no security compared to its original version. The parameter does not take into account the removal of the file password that was used to prevent the file from being opened.BooleanNoEditable field 
Format*1.0.1

Specifies the barcode format.


More information...

TextCODE_128Values list
Available values
AZTEC
CODABAR
CODE_39
CODE_93
CODE_128
DATA_MATRIX
EAN_8
EAN_13
ITF
PDF_417
QR_CODE
UPC_A
UPC_E
Width*1.0.1Defines the width of the barcode in pixels.Integer40Editable fieldSpecifies the minimum width of the barcode. In case the value to be encoded from the text parameter turns out to be too long, the width will be increased.
Height*1.0.1Defines the height of the barcode in pixels.Integer15Editable field 
Display text below the barcode*1.0.1Specifies whether to display the text encoded in the barcode below this barcode.BooleanNoEditable fieldThe text has a fixed font size of 11 and black color.
Rotation Mechanism1.0.8Specifies how a barcode watermark rotation should work. Method 1 - (obsolete) rotation is based on the basic functions of the library. The rotation for the barcode watermark is counterclockwise. Method 2 (recommended) - rotation takes place relative to the watermark point specified in the Anchor parameter. The rotation is clockwise for the barcode watermark. Parameter is optional. If left blank, Method 1 will be used.Text Editable field
Displayed valuePassed value
Method 1METHOD_1
Method 2METHOD_2
Font size*1.0.1Text size.Float15Editable field 
Font type*1.0.1Text font type.TextHELVETICAValues list
ValueDescription
COURIERCourier
COURIER_BOLDCourier Bold
COURIER_OBLIQUECourier Oblique
COURIER_BOLDOBLIQUECourier Bold Oblique
HELVETICAHelvetica
HELVETICA_BOLDHelvetica Bold
HELVETICA_OBLIQUEHelvetica Oblique
HELVETICA_BOLDOBLIQUEHelvetica Bold Oblique
SYMBOLSymbol
TIMES_ROMANTimes Roman
TIMES_BOLDTimes Bold
TIMES_ITALICTimes Italic
TIMES_BOLDITALICTimes Bold Italic
ZAPFDINGBATSZapf Dingbats
Color*1.0.1Color of the text.TextLIGHT_GRAYValues list
ValueDescription
WHITEWhite
LIGHT_GRAYLight gray
GRAYGray
DARK_GRAYDark gray
BLACKBlack
REDRed
PINKPink
ORANGEOrange
YELLOWYellow
GREENGreen
MAGENTAMagenta
CYANCyan
BLUEBlue
Coding*1.0.1

Character encoding standard.

 

More information...

TextCP1250Values list
Available values
CP1250
CP1252
CP1257
MACROMAN
Display text background*1.0.1Sets the background for a text watermark with dimensions the same as the length and width of the text.TextNoEditable Field 
Background color1.0.1Sets the background for a text watermark with dimensions the same as the length and width of the text. If the parameter is not completed (empty), the background will not be used.Logical Values list
ValueDescription
WHITEWhite
LIGHT_GRAYLight gray
GRAYGray
DARK_GRAYDark gray
BLACKBlack
REDRed
PINKPink
ORANGEOrange
YELLOWYellow
GREENGreen
MAGENTAMagenta
CYANCyan
BLUEBlue

Parameter*- mandatory field

 

 

Configuration example

 

Example of use

An example of operation for the above application configuration.

Original document:

After change:

Change log

1.0.1 (applicable documentation)

  • Component adding

1.0.2 (applicable documentation)

  • Adding "Remove password from the file" parameter for password-protected files

1.0.4 (applicable documentation)

  • Adding keywords to use in the text parameter

1.0.8

  • Adding Rotation Mechanism parameter that changes the barcode rotation behavior

  • No labels
Write a comment…