Athento allows you to insert HTML code over a PDF using the Watermark V2 operation that 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 CSS styles in "inline" format. In addition, you can add metadata values as follows:
{{ document.id|gmv_printable:"metadata.invoice_suppliername" }}
- X Coordinate (Required): A numeric value must be entered, it will determine the position on the x-axis of the mark, i.e., the higher the value, the further to the right it will appear.
- Y Coordinate (Required): A numeric value must be entered, it will determine the position on the y-axis of the mark, i.e., the higher the value, the higher it will appear.
- Height (Required): Numeric value indicating the height of the mark.
- Width (Required): Numeric value indicating the width of the watermark.
- Overwrite (Optional): If this option is enabled, the original master file will be replaced with the new one bearing the watermark.
Deprecated versions of this automation task
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 you want to watermark, it does not support any programming language, but it does support values such as
{{fil.creation_date}}
- Text_color: supported values are "Red", "black" and "Blue", currently they do not modify the text color.
- Grades: It is mandatory to fill in with a numeric value, but it has no impact on the mark.
- Pos x: A numeric value must be entered, it will determine the position on the x-axis of the mark, i.e., 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 on the y-axis of the mark, i.e. the higher the value, the higher it will appear.
- Overwrite: If this option is True, the original master file will be replaced with the new one bearing the mark.
- Height: Numeric value indicating the height of the text (i.e., how "tall" the letters are).
- Width: Numeric value indicating the width of the text (i.e. how "wide" the letters are).
Comments
0 comments
Please sign in to leave a comment.