Lines Matching refs:Mpdf
3 namespace Mpdf\Writer;
5 use Mpdf\Strict;
6 use Mpdf\Mpdf;
14 * @var \Mpdf\Mpdf
19 * @var \Mpdf\Writer\BaseWriter
23 public function __construct(Mpdf $mpdf, BaseWriter $writer)
70 $x_pos = ($bpa['w'] * $x_pos) - ($orig_w / Mpdf::SCALE * $x_pos);
72 $x_pos = ($w * $x_pos) - ($orig_w / Mpdf::SCALE * $x_pos);
83 $y_pos = ($bpa['h'] * $y_pos) - ($orig_h / Mpdf::SCALE * $y_pos);
85 $y_pos = ($h * $y_pos) - ($orig_h / Mpdf::SCALE * $y_pos);
90 $adj_x = ($x_pos + $bpa['x']) * Mpdf::SCALE;
92 $adj_x = ($x_pos + $x) * Mpdf::SCALE;
96 $adj_y = (($pgh - $y_pos - $bpa['y']) * Mpdf::SCALE) - $orig_h;
98 $adj_y = (($pgh - $y_pos - $y) * Mpdf::SCALE) - $orig_h;
124 throw new \Mpdf\MpdfException('Problem: Image object not found for background pattern ' . $img['i']);