|
|
@@ -16,11 +16,29 @@ class TestPDF extends FPDF {
|
|
|
parent::SetTextColor($r, $g, $b);
|
|
|
}
|
|
|
|
|
|
- public function Cell($width, $height = 0, $text = "", $border = 0, $line_mode = 0, $align = "", $fill = false, $link = "") {
|
|
|
+ public function Write($height, $text, $link = "") {
|
|
|
|
|
|
$font_size = $this->GetFontSize();
|
|
|
|
|
|
+ if(empty($text)) {
|
|
|
+ $text = "N/A";
|
|
|
+ }
|
|
|
+
|
|
|
+ if($text == "N/A") {
|
|
|
+ $this->SetTextColor(192, 192, 192);
|
|
|
+ }
|
|
|
+
|
|
|
+ parent::Write($height, $text, $link);
|
|
|
+
|
|
|
+ call_user_func_array([$this, "SetTextColor"], $this->currentTextColor);
|
|
|
+
|
|
|
+ // Restore font size
|
|
|
+ $this->SetFontSize($font_size);
|
|
|
+ }
|
|
|
|
|
|
+ public function Cell($width, $height = 0, $text = "", $border = 0, $line_mode = 0, $align = "", $fill = false, $link = "") {
|
|
|
+
|
|
|
+ $font_size = $this->GetFontSize();
|
|
|
|
|
|
if(empty($text)) {
|
|
|
$text = "N/A";
|
|
|
@@ -39,6 +57,14 @@ class TestPDF extends FPDF {
|
|
|
$this->SetFontSize($font_size);
|
|
|
}
|
|
|
|
|
|
+ public function MoveX($adjustment) {
|
|
|
+ $this->SetX($this->GetX() + $adjustment);
|
|
|
+ }
|
|
|
+
|
|
|
+ public function MoveY($adjustment) {
|
|
|
+ $this->SetY($this->GetY() + $adjustment);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
?>
|