コード例 #1
0
 function convert($params = array())
 {
     parent::FPDF();
     $this->footers = $params['footers'];
     $this->setCreator(utf8_decode($params['creator']));
     $this->SetTextColor(0);
 }
コード例 #2
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;
 }
コード例 #3
0
 function __construct($params = array())
 {
     parent::FPDF();
     $this->footers = $params['footers'];
     $this->setCreator(utf8_decode($params['creator']));
     $this->SetTextColor(0);
     $this->cMargin = 0;
 }