PDF_label Class Reference

Inherits FPDF.

List of all members.

Public Member Functions


Detailed Description

Definition at line 170 of file pdf_output.php.


Member Function Documentation

PDF_label::_Arc ( x1,
y1,
x2,
y2,
x3,
y3 
)

Definition at line 204 of file pdf_output.php.

Referenced by RoundedRect().

00205   {
00206       $h = $this->h;
00207       $this->_out(sprintf('%.2f %.2f %.2f %.2f %.2f %.2f c ', $x1*$this->k, ($h-$y1)*$this->k,
00208                   $x2*$this->k, ($h-$y2)*$this->k, $x3*$this->k, ($h-$y3)*$this->k));
00209   }

PDF_label::Footer (  ) 

Reimplemented from FPDF.

Definition at line 222 of file pdf_output.php.

00222                      {
00223     $y=-17;
00224     $this->SetX(0);
00225     //Arial italic 8
00226     $this->SetFont('Arial','',6);
00227     $this->SetFillColor(255);
00228     foreach(explode("\n",STORE_LEGAL_INFO) as $lg){
00229       $this->SetY($y);
00230       $this->Cell(0,3,tep_correct_entitie_put_pdf($lg),0,0,'C');
00231       $y = $y +3;
00232     }
00233   }

PDF_label::Header (  ) 
Author:
oscim - OscssTeam
Version:
1.3
Note:

Reimplemented from FPDF.

Definition at line 216 of file pdf_output.php.

00217   {
00218   //    //Logo
00219         $this->Image(HTTP_SERVER.STORE_LOGO_PRINT,5,10,50,0,'',HTTP_SERVER.DIR_WS_CATALOG);
00220   }

PDF_label::RoundedRect ( x,
y,
w,
h,
r,
style = '' 
)

Definition at line 172 of file pdf_output.php.

00173   {
00174       $k = $this->k;
00175       $hp = $this->h;
00176       if($style=='F')
00177           $op='f';
00178       elseif($style=='FD' or $style=='DF')
00179           $op='B';
00180       else
00181           $op='S';
00182       $MyArc = 4/3 * (sqrt(2) - 1);
00183       $this->_out(sprintf('%.2f %.2f m',($x+$r)*$k,($hp-$y)*$k ));
00184       $xc = $x+$w-$r ;
00185       $yc = $y+$r;
00186       $this->_out(sprintf('%.2f %.2f l', $xc*$k,($hp-$y)*$k ));
00187 
00188       $this->_Arc($xc + $r*$MyArc, $yc - $r, $xc + $r, $yc - $r*$MyArc, $xc + $r, $yc);
00189       $xc = $x+$w-$r ;
00190       $yc = $y+$h-$r;
00191       $this->_out(sprintf('%.2f %.2f l',($x+$w)*$k,($hp-$yc)*$k));
00192       $this->_Arc($xc + $r, $yc + $r*$MyArc, $xc + $r*$MyArc, $yc + $r, $xc, $yc + $r);
00193       $xc = $x+$r ;
00194       $yc = $y+$h-$r;
00195       $this->_out(sprintf('%.2f %.2f l',$xc*$k,($hp-($y+$h))*$k));
00196       $this->_Arc($xc - $r*$MyArc, $yc + $r, $xc - $r, $yc + $r*$MyArc, $xc - $r, $yc);
00197       $xc = $x+$r ;
00198       $yc = $y+$r;
00199       $this->_out(sprintf('%.2f %.2f l',($x)*$k,($hp-$yc)*$k ));
00200       $this->_Arc($xc - $r, $yc - $r*$MyArc, $xc - $r*$MyArc, $yc - $r, $xc, $yc - $r);
00201       $this->_out($op);
00202   }


The documentation for this class was generated from the following file: