forked from mpdf/mpdf
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssue372Test.php
More file actions
20 lines (16 loc) · 516 Bytes
/
Issue372Test.php
File metadata and controls
20 lines (16 loc) · 516 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
namespace Issues;
use Mpdf\Mpdf;
class Issue372Test extends \Mpdf\BaseMpdfTest
{
public function testWatermarkOnImport()
{
$this->mpdf->SetSourceFile(__DIR__ . '/../data/pdfs/2-Page-PDF_1_4.pdf');
$tplId = $this->mpdf->ImportPage(1);
$this->mpdf->UseTemplate($tplId);
$this->mpdf->SetWatermarkImage(__DIR__ . '/../data/img/bayeux2.jpg', 1, '', [160, 10]);
$this->mpdf->showWatermarkImage = true;
$output = $this->mpdf->Output('', 'S');
$this->assertStringStartsWith('%PDF-', $output);
}
}