Skip to content

Commit

Permalink
fix: additional watermark parameters don't work
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasravnsborg committed Jan 12, 2017
1 parent f847b64 commit 2ae750d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LaravelPdf/Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function setProtection($permisson, $userPassword = '', $ownerPassword = '
public function setWatermarkImage($src, $alpha = 0.2, $size = 'D', $position = 'P')
{
$this->mpdf->showWatermarkImage = true;
return $this->mpdf->SetWatermarkImage($src);
return $this->mpdf->SetWatermarkImage($src, $alpha, $size, $position);
}

/**
Expand All @@ -101,7 +101,7 @@ public function setWatermarkImage($src, $alpha = 0.2, $size = 'D', $position = '
public function setWatermarkText($text, $alpha = 0.2)
{
$this->mpdf->showWatermarkText = true;
return $this->mpdf->SetWatermarkText($text);
return $this->mpdf->SetWatermarkText($text, $alpha);
}


Expand Down

0 comments on commit 2ae750d

Please sign in to comment.