Lines Matching refs:mpdf

17 	private $mpdf;
24 public function __construct(Mpdf $mpdf, Protection $protection)
26 $this->mpdf = $mpdf;
32 if ($this->mpdf->state === 2) {
35 $this->mpdf->buffer .= $s . ($ln ? "\n" : '');
41 if ($this->mpdf->encrypted) {
42 $s = $this->protection->rc4($this->protection->objectKey($this->mpdf->currentObjectNumber), $s);
51 $obj_id = ++$this->mpdf->n;
56 $this->mpdf->offsets[$obj_id] = strlen($this->mpdf->buffer);
58 $this->mpdf->currentObjectNumber = $obj_id; // for later use with encryption
64 if ($this->mpdf->encrypted) {
65 $s = $this->protection->rc4($this->protection->objectKey($this->mpdf->currentObjectNumber), $s);
76 if ($this->mpdf->encrypted) {
77 $s = $this->protection->rc4($this->protection->objectKey($this->mpdf->currentObjectNumber), $s);
86 if ($this->mpdf->checkSIP && preg_match("/([\x{20000}-\x{2FFFF}])/u", $str)) {
87 if (!in_array($this->mpdf->currentfontfamily, ['gb', 'big5', 'sjis', 'uhc', 'gbB', 'big5B', 'sjisB', 'uhcB', 'gbI', 'big5I', 'sjisI', 'uhcI',
92 if ($this->mpdf->checkSMP && preg_match("/([\x{10000}-\x{1FFFF}])/u", $str)) {
183 if ($this->mpdf->bufferoutput) {
185 $this->mpdf->headerbuffer.= $s . "\n";
187 } elseif ($this->mpdf->ColActive && !$this->mpdf->processingHeader && !$this->mpdf->processingFooter) {
198 $this->mpdf->ColDetails[$this->mpdf->CurrCol]['bottom_margin'] = $this->mpdf->y + $h;
200 } elseif ($this->mpdf->tableLevel > 0 && preg_match('/\d+\.\d\d+ \d+\.\d\d+ \d+\.\d\d+ ([\-]{0,1}\d+\.\d\d+) re/', $s, $m)) { // Rect in table
204 $this->mpdf->ColDetails[$this->mpdf->CurrCol]['bottom_margin'] = max($this->mpdf->ColDetails[$this->mpdf->CurrCol]['bottom_margin'], $this->mpdf->y + $h);
206 } elseif (isset($this->mpdf->ColDetails[$this->mpdf->CurrCol]['bottom_margin'])) {
208 $h = $this->mpdf->ColDetails[$this->mpdf->CurrCol]['bottom_margin'] - $this->mpdf->y;
220 $this->mpdf->columnbuffer[] = [
222 'col' => $this->mpdf->CurrCol, // Column when printed
223 'x' => $this->mpdf->x, // x when printed
224 'y' => $this->mpdf->y, // this->y when printed (after column break)
228 } elseif ($this->mpdf->table_rotate && !$this->mpdf->processingHeader && !$this->mpdf->processingFooter) {
231 $this->mpdf->tablebuffer .= $s . "\n";
233 } elseif ($this->mpdf->kwt && !$this->mpdf->processingHeader && !$this->mpdf->processingFooter) {
236 $this->mpdf->kwt_buffer[] = [
238 'x' => $this->mpdf->x, // x when printed
239 'y' => $this->mpdf->y, // y when printed
242 } elseif ($this->mpdf->keep_block_together && !$this->mpdf->processingHeader && !$this->mpdf->processingFooter) {
245 $this->mpdf->pages[$this->mpdf->page] .= $s . ($ln ? "\n" : '');