Example #1
0
 /**
  * Draw word at given position
  *
  * Draw the given word at the given position using the currently set text
  * formatting options.
  *
  * The coordinate specifies the left bottom edge of the words bounding box.
  *
  * @param float $x
  * @param float $y
  * @param string $word
  * @return void
  */
 public function drawWord($x, $y, $word)
 {
     $size = ezcDocumentPcssMeasure::create($this->currentFont['size'] . 'pt')->get();
     $this->document->setXY($x, (double) round($y - $size, 4));
     $this->document->Write($size, $word);
 }
Example #2
0
 /**
  * Draw word at given position
  *
  * Draw the given word at the given position using the currently set text
  * formatting options.
  * 
  * @param float $x 
  * @param float $y 
  * @param string $word 
  * @return void
  */
 public function drawWord($x, $y, $word)
 {
     $this->document->setXY($x, $y);
     $this->document->Write($this->pixelToMm($this->currentFont['size']), $word);
 }