Lines Matching refs:file

1413         $file = $g_font_resolver_pdf->ttf_mappings[$family];
1418 $file = substr($file, 0, strlen($file) - 4);
1424 MakeFont(PDFLIB_TTF_FONTS_REPOSITORY.$file.'.ttf',
1425 PDFLIB_TTF_FONTS_REPOSITORY.$file.'.afm',
1938 function AddFont($fontkey, $family, $style, $encoding, $file, $bEmbed) { argument
1940 if ($file=='') {
1941 $file=str_replace(' ','',$family).strtolower($style).'.php';
1951 $filepath = $this->_getfontpath().$file;
1957 if (!$bEmbed) { $file = ''; };
1972 'file' =>$file);
1992 if ($file) {
1994 $this->FontFiles[$file]=array('length1'=>$originalsize);
1996 $this->FontFiles[$file]=array('length1'=>$size1,'length2'=>$size2);
2403 function Image($file,$x,$y,$w=0,$h=0,$type='',$link='') argument
2406 if(!isset($this->images[$file]))
2411 $pos=strrpos($file,'.');
2413 $this->Error('Image file has no extension and no type was specified: '.$file);
2414 $type=substr($file,$pos+1);
2420 $info=$this->_parsejpg($file);
2422 $info=$this->_parsepng($file);
2429 $info=$this->$mtd($file);
2433 $this->images[$file]=$info;
2436 $info=$this->images[$file];
2683 foreach ($this->FontFiles as $file=>$info) {
2686 $this->FontFiles[$file]['n'] = $this->n;
2688 $f=fopen($this->_getfontpath().$file,'rb',1);
2696 $compressed=(substr($file,-2)=='.z');
2763 $file=$font['file'];
2764 if($file) {
2765 $s.=' /FontFile'.($type=='Type1' ? '' : '2').' '.$this->FontFiles[$file]['n'].' 0 R';
2782 while (list($file,$info) = each($this->images)) {
2784 $this->images[$file]['n']=$this->n;
2816 unset($this->images[$file]['data']);
3036 function _parsejpg($file) argument
3039 $a=GetImageSize($file);
3042 $this->Error('Missing or incorrect image file: '.$file);
3046 $this->Error('Not a JPEG file: '.$file);
3060 $f = fopen($file,'rb');
3069 function _parsepng($file) { argument
3071 $f=fopen($file,'rb');
3073 $this->Error('Can\'t open image file: '.$file);
3078 $this->Error('Not a PNG file: '.$file);
3084 $this->Error('Incorrect PNG file: '.$file);
3092 $this->Error('16-bit depth not supported: '.$file);
3103 $this->Error('Alpha channel not supported: '.$file);
3107 $this->Error('Unknown compression method: '.$file);
3111 $this->Error('Unknown filter method: '.$file);
3115 $this->Error('Interlacing not supported: '.$file);
3164 $this->Error('Missing palette in '.$file);