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