mPDF Manual – mPDF Variables

watermarkTextAlpha

(mPDF >= 2.2)

Description

string watermarkTextAlpha

Specifies the transparency (alpha value) to use for the watermark text on each page.

Values

$watermarkTextAlpha

Define as a value between 0 and 1.

DEFAULT or BLANK : 0.2

Examples

Example #1

<?php

$mpdf = new mPDF();

$mpdf->SetWatermarkText('DRAFT');

$mpdf->showWatermarkText = true;

$mpdf->watermarkTextAlpha = 0.1;

$mpdf->WriteHTML('
Hallo World
');

?>

See Also