예제 #1
0
 function PDF_Label($format, $unit = 'mm', $posX = 1, $posY = 1)
 {
     if (is_array($format)) {
         // Custom format
         $Tformat = $format;
     } else {
         // Built-in format
         if (!isset($this->_Avery_Labels[$format])) {
             $this->Error('Unknown label format: ' . $format);
         }
         $Tformat = $this->_Avery_Labels[$format];
     }
     parent::fpdf('P', $unit, $Tformat['paper-size']);
     $this->_Metric_Doc = $unit;
     $this->_Set_Format($Tformat);
     $this->SetFont('Arial');
     $this->SetMargins(0, 0);
     $this->SetAutoPageBreak(false);
     $this->_COUNTX = $posX - 2;
     $this->_COUNTY = $posY - 1;
 }
예제 #2
0
 /**
  * Constructor
  * See FPDF-Documentation
  * @param string $orientation
  * @param string $unit
  * @param mixed $format
  */
 function fpdf_tpl($orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     parent::fpdf($orientation, $unit, $format);
 }