public function __construct($orientation = 'P', $unit = 'mm', $format = 'A4') { // if (!file_exists(FPDF_FONTPATH)) { // mkdir(FPDF_FONTPATH, 0700, true); // } // if (!file_exists(_SYSTEM_TTFONTS)) { // mkdir(_SYSTEM_TTFONTS, 0700, true); // } parent::__construct($orientation, $unit, $format); # parent::tFPDF($orientation,$unit,$format); $this->awery_text .= date('Y M d H:i'); $this->AddFont('ArialUU', '', 'arial.ttf', true); $this->AddFont('ArialUU', 'B', 'arialbd.ttf', true); $this->AddFont('ArialUU', 'I', 'ariali.ttf', true); $this->AddFont('ArialUU', 'BI', 'arialbi.ttf', true); $this->SetFont('ArialUU', '', 10); // if ( file_exists(FPDF_FONTPATH.'unifont/Arimo-Regular.ttf') ) // $this->AddFont('Arimo','','Arimo-Regular.ttf',true); // if ( file_exists(FPDF_FONTPATH.'unifont/Arimo-Bold.ttf') ) // $this->AddFont('Arimo','B','Arimo-Bold.ttf',true); // if ( file_exists(FPDF_FONTPATH.'unifont/Arimo-Italic.ttf') ) // $this->AddFont('Arimo','I','Arimo-Italic.ttf',true); // if ( file_exists(FPDF_FONTPATH.'unifont/Arimo-BoldItalic.ttf') ) // $this->AddFont('Arimo','BI','Arimo-BoldItalic.ttf',true); }
function __construct($sens = 'P', $unit = 'mm', $format = 'A4') { $this->underline = false; $this->overline = false; $this->linethrough = false; parent::__construct($sens, $unit, $format); $this->AliasNbPages(); $this->SetMyFooter(); }