Example #1
0
 /**
  * Writes the footer for a single page.
  * Use the passed $objPdf to access the pdf.
  *
  * @param class_pdf_tcpdf $objPdf
  * @return void
  */
 public function writeFooter($objPdf)
 {
     // Position at 1.5 cm from bottom
     $objPdf->SetY(-10);
     // Set font
     $objPdf->SetFont('helvetica', 'I', 8);
     // Page number
     $objPdf->Cell(0, 0, $objPdf->getAliasNumPage() . '/' . $objPdf->getAliasNbPages(), 'T', 0, 'R');
     $objPdf->SetY(-10);
     //date
     $objPdf->Cell(0, 0, '' . timeToString(time(), false) . $this->strFooterAddon, '0', 0, 'L');
 }
Example #2
0
 /**
  * Writes the header for a single page.
  * Use the passed $objPdf to access the pdf.
  *
  * @param class_pdf_tcpdf $objPdf
  */
 public function writeHeader($objPdf)
 {
     $objPdf->SetY(3);
     $objPdf->SetFont('helvetica', '', 8);
     // Title
     $objPdf->MultiCell(0, 0, $objPdf->getTitle(), "B", "C");
     // Line break
     $objPdf->Ln(30);
 }
Example #3
0
 /**
  * Sets a text color
  *
  * @param int $intR
  * @param int $intG
  * @param int $intB
  *
  * @return void
  */
 public function setTextColor($intR, $intG, $intB)
 {
     $this->objPdf->SetTextColor($intR, $intG, $intB);
 }