@@ 75-86 (lines=12) @@ | ||
72 | * @param $value |
|
73 | * @return EasyPdf |
|
74 | */ |
|
75 | protected function setInformation($information, $value) |
|
76 | { |
|
77 | $fn = 'Set'.$information; |
|
78 | ||
79 | if (is_array($value)) { |
|
80 | call_user_func([$this->pdf, $fn], ...$value); |
|
81 | } else { |
|
82 | call_user_func([$this->pdf, $fn], $value); |
|
83 | } |
|
84 | ||
85 | return $this; |
|
86 | } |
|
87 | ||
88 | /** |
|
89 | * Add an array of configurations on the pdf instance. |
|
@@ 110-121 (lines=12) @@ | ||
107 | * @param $value |
|
108 | * @return $this |
|
109 | */ |
|
110 | protected function setConfig($config, $value) |
|
111 | { |
|
112 | $fn = 'set'.$config; |
|
113 | ||
114 | if (is_array($value)) { |
|
115 | call_user_func([$this->pdf, $fn], ...$value); |
|
116 | } else { |
|
117 | call_user_func([$this->pdf, $fn], $value); |
|
118 | } |
|
119 | ||
120 | return $this; |
|
121 | } |
|
122 | ||
123 | /** |
|
124 | * Add custom font on the pdf instance. |