Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.147.2.189
<?php
namespace Mpdf\Tag;
class WatermarkText extends Tag
{
public function open($attr, &$ahtml, &$ihtml)
{
$txt = '';
if (!empty($attr['CONTENT'])) {
$txt = htmlspecialchars_decode($attr['CONTENT'], ENT_QUOTES);
}
$alpha = -1;
if (isset($attr['ALPHA']) && $attr['ALPHA'] > 0) {
$alpha = $attr['ALPHA'];
}
$this->mpdf->SetWatermarkText($txt, $alpha);
}
public function close(&$ahtml, &$ihtml)
{
}
}
|