overlayPDF
Overlays a PDF on top of another PDF. Use case can be varied:
To attach branding header or footer to a ready-made PDF document
To print a watermark text on top of a document
Attributes
mainDoc | ||
---|---|---|
Required | Value type | EL-evaluated |
Yes | File | Yes |
Defines the PDF file where other PDF will be overlayed. |
overlayDoc | ||
---|---|---|
Required | Value type | EL-evaluated |
Yes | File | Yes |
Defines the PDF file that will be used as overlay PDF. |
var | ||
---|---|---|
Required | Value type | EL-evaluated |
Yes | String | No |
Name of the variable where created PDF will be stored. |
name | ||
---|---|---|
Required | Value type | EL-evaluated |
No | String | Yes |
PDF file name. |
Examples
Create PDF where "pdf2" is overlayed on top of "pdf1".
<overlayPDF var="overlayed" mainDoc="${pdf1}" overlayDoc="${pdf2}" name="mypdf.pdf">