Watermark Capabilities
The Watermark feature, introduced in TallyPrime Release 7.1, enables you to display custom watermarks in a Form. A watermark can be configured as Text or Image and customized using attributes such as Type, Info, Size, Color, Alignment, Opacity, and Use.
With this enhancement, developers can create clearer and more personalized Form outputs for both display and print scenarios. The TDL capabilities related to Watermark are explained in the following sections.
Definition – Watermark
Use a Watermark definition to specify a watermark in a Form. You can configure it as Text or Image using the supported attributes.
Syntax
[Watermark : <Watermark Name>]
Where, <Watermark Name> specifies the name of the Watermark definition.
Attribute – Type
The Type attribute specifies the type of watermark.
Syntax
[Watermark : <Watermark Name>]
Type : <Type>
Where, <Type> specifies the watermark type.
Supported values: Text / Image.
Attribute – Info
The Info attribute specifies the watermark content.
Syntax
[Watermark : <Watermark Name>]
Info : <Value>
Where, <Value> specifies the text to display for a text watermark or image path/reference for an image watermark.
Attribute – Watermark Size
The Watermark Size attribute specifies the size of the watermark.
Syntax
[Watermark : <Watermark Name>]
Size : <Size Value>
Where, <Size Value> specifies the watermark size.
Attribute – Color
The Color attribute specifies the text color for a text watermark.
Syntax
[Watermark : <Watermark Name>]
Color : <Color Value>
Where, <Color Value> specifies the watermark text color.
Attribute -Alignment
The Alignment attribute specifies the alignment of the watermark.
Syntax
[Watermark : <Watermark Name>]
Alignment : <Alignment Type>
Where, <Alignment Type> specifies the watermark alignment.
Supported values: Horizontal / Diagonal.
Attribute – Opacity
The Opacity attribute specifies the watermark’s transparency level.
Syntax
[Watermark : <Watermark Name>]
Opacity : <Opacity Value>
Where, <Opacity Value> specifies the opacity of the watermark. Example: 20%.
Attribute – Use
The Use attribute is used in a Watermark definition to reuse an existing Watermark definition.
Syntax
[Watermark : <Watermark Name>]
Use : <Watermark Name>
Where, <Watermark Name> specifies the name of the Watermark definition.
Example
[Watermark : Text Watermark]
Type : Text
Info : “Watermark”
Size : 20
Color : Grey
Alignment : $$SysName:Horizontal
Opacity : 20%
This configuration displays the word “Watermark” with a size of 20, across the form in grey color, with a horizontal layout and a light (semi-transparent) appearance.
- Type: Text – Defines the watermark as a text watermark.
- Info: “Watermark” – Displays the text Watermark as the watermark content.
- Size: 20 – Sets the watermark text size to 20.
- Color: Grey – Displays the watermark text in Grey color.
- Alignment: Horizontal – Places the watermark in horizontal orientation.
- Opacity: 20% – Makes the watermark semi-transparent with 20% opacity.
