mlreportgen.dom.Watermark Class
Namespace: mlreportgen.dom
Add watermark to pages in sections of PDF reports
Description
Use an object of the mlreportgen.dom.Watermark class to create a watermark object that you can add to a section of a PDF report. A
watermark is an image that appears in the background of a page, such as the word
Draft or Confidential. It runs behind the text on each page you apply it to. You
can use any of these file types:
.emf.gif.jpg.pdf.png.svg.tiff
This class is only compatible with these MATLAB® Report Generator™ output types:
"pdf""pdfa"(since R2025a)
The mlreportgen.dom.Watermark class is a handle class.
Creation
Description
creates a
wm = Watermark(image)Watermark object based on the specified image, and
returns a Watermark object.