diff --git a/phpdotnet/phd/Format/Abstract/PDF.php b/phpdotnet/phd/Format/Abstract/PDF.php index 5aea11f6b..774dfed11 100644 --- a/phpdotnet/phd/Format/Abstract/PDF.php +++ b/phpdotnet/phd/Format/Abstract/PDF.php @@ -241,7 +241,7 @@ public function appendText($text) { $this->PAGE_HEIGHT - (self::VMARGIN + $this->vOffset), $textToAppend); } if ($textToAppend) - $this->current["char"] = $textToAppend{strlen($textToAppend)-1}; + $this->current["char"] = $textToAppend[strlen($textToAppend)-1]; // Offsets for next line if (!$isLastLine) { @@ -302,7 +302,7 @@ public function appendOneLine($text) { $this->currentPage->textOut(self::HMARGIN + $this->hOffset + $this->permanentLeftSpacing, $this->PAGE_HEIGHT - (self::VMARGIN + $this->vOffset), $textToAppend); if ($textToAppend) - $this->current["char"] = $textToAppend{strlen($textToAppend)-1}; + $this->current["char"] = $textToAppend[strlen($textToAppend)-1]; $this->hOffset += $this->currentPage->getTextWidth($textToAppend);