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
and1
. - BLANK uses default value
Default: 0.2
Examples
Example #1
<?php
$mpdf = new \Mpdf\Mpdf();
$mpdf->SetWatermarkText('DRAFT');
$mpdf->showWatermarkText = true;
$mpdf->watermarkTextAlpha = 0.1;
$mpdf->WriteHTML('
Hello World
');
See Also
- SetWatermarkText() - Set the text to use as a Watermark
- SetWatermarkImage() - Set an image to use as a Watermark
- watermarkImageAlpha - Specifies the transparency (alpha value) for the watermark image
- showWatermarkText - Specifies whether or not to show/print the watermark text
- showWatermarkImage - Specifies whether or not to show/print the watermark image
- watermark_font - Specifies the font to use for Watermark text