Lines Matching refs:orig_srcpath
142 public function getImage(&$file, $firsttime = true, $allowvector = true, $orig_srcpath = false, $interpolation = false)
153 if ($wrapperChecker->hasBlacklistedStreamWrapper($orig_srcpath)) {
154 return $this->imageError($orig_srcpath, $firsttime, 'File contains an invalid stream. Only ' . implode(', ', $wrapperChecker->getWhitelistedStreamWrappers()) . ' streams are allowed.');
182 if ($firsttime && $orig_srcpath) {
183 // If orig_srcpath is a relative file path (and not a URL), then it needs to be URL decoded
184 if (strpos($orig_srcpath, 'data:') !== 0) {
185 $orig_srcpath = str_replace(' ', '%20', $orig_srcpath);
187 if (!preg_match('/^(http|ftp)/', $orig_srcpath)) {
188 $orig_srcpath = $this->urldecodeParts($orig_srcpath);
193 if ($orig_srcpath && isset($this->mpdf->images[$orig_srcpath])) {
194 $file = $orig_srcpath;
195 return $this->mpdf->images[$orig_srcpath];
202 if ($orig_srcpath && isset($this->mpdf->formobjects[$orig_srcpath])) {
203 $file = $orig_srcpath;
219 if ($orig_srcpath && $this->mpdf->basepathIsLocal && $check = @fopen($orig_srcpath, 'rb')) {
221 $file = $orig_srcpath;