/** * 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); }
/** * Creates a single cell using automatic wrapping at the end of the cell. * * @param string $strContent * @param int $intWidth * @param int $intHeight * @param array $bitBorders array of boolean: array(top, right, bottom, left) * @param string $strAlign one of self::$TEXT_ALIGN_CENTER, self::$TEXT_ALIGN_RIGHT, self::$TEXT_ALIGN_LEFT * @param bool $bitFill * @param int|string $intX * @param int|string $intY * @param int $bitCursorPos 1 = next line, 0 = to the right * @param bool $bitIsHtml * * @return void */ public function addMultiCell($strContent = '', $intWidth = 0, $intHeight = 0, $bitBorders = array(false, false, false, false), $strAlign = "L", $bitFill = false, $intX = '', $intY = '', $bitCursorPos = 1, $bitIsHtml = false) { $strBorders = ""; if ($bitBorders[0]) { $strBorders .= "T"; } if ($bitBorders[1]) { $strBorders .= "R"; } if ($bitBorders[2]) { $strBorders .= "B"; } if ($bitBorders[3]) { $strBorders .= "L"; } if ($strBorders == "") { $strBorders = 0; } return $this->objPdf->MultiCell($intWidth, $intHeight, $strContent, $strBorders, $strAlign, $bitFill, $bitCursorPos, $intX, $intY, true, 0, $bitIsHtml); }