Athento allows you to insert HTML code onto a PDF through the Watermark V2 operation, which you can install from the automation library in a space.
op_watermark_v2
The operation has several parameters that you must configure:
- Watermark type (Required): here you must select HTML.
- HTML (Required): In this text box you can enter the HTML with the CSS styles in “inline” format. In addition, you can add metadata values as follows:
{{ document.id|gmv_printable:"metadata.invoice_suppliername" }}
- Coordinate X (Required): A numeric value must be entered; it will determine the position of the watermark on the x-axis, that is, the higher the value, the further to the right it will appear.
- Coordinate Y (Required): A numeric value must be entered; it will determine the position of the watermark on the y-axis, that is, the higher the value, the higher up it will appear.
- Height (Required): Numeric value that indicates the height of the watermark.
- Width (Required): Numeric value that indicates the width of the watermark.
- Overwrite (Optional): If this option is enabled, the original main file will be replaced with the new one that contains the watermark.
Deprecated versions of this operation
Currently, there is a version of this operation that will soon no longer be available.
op_watermark
This version only supports plain text.
The operation has quite a few parameters that can be configured:
- Type: Currently the only functional type is text; it will allow the watermark to be a text string.
- Text: Here you enter the text string that you want to imprint as a watermark; it does not accept any programming language, but it does accept values such as, for example
{{fil.creation_date}}
- Text_color: the supported values are “Red”, “black” and “Blue”; currently they do not change the text color.
- Grades: It is mandatory to fill it in with a numeric value, but it has no effect on the watermark.
- Pos x: A numeric value must be entered; it will determine the position of the watermark on the x-axis, that is, the higher the value, the further to the right it will appear.
- Pos y: A numeric value must be entered; it will determine the position of the watermark on the y-axis, that is, the higher the value, the higher up it will appear.
- Overwrite: If this option is True, the original main file will be replaced with the new one that contains the watermark.
- Height: Numeric value that indicates the height of the text (that is, how “tall” the letters are).
- Width: Numeric value that indicates the width of the text (that is, how “wide” the letters are).