HaruPage::textOut

(PECL haru >= 0.0.1)

HaruPage::textOutPrint the text on the specified position

Описание

bool HaruPage::textOut ( float $x , float $y , string $text )

Prints the text on the specified position.

Список параметров

x

y

text

Возвращаемые значения

Returns TRUE on success.

Ошибки

Вызывает исключение HaruException при ошибке.

Смотрите также

Коментарии

a simple sample of textOut : 

<?php

$text 
"Syuaa is another little programmer";

$doc=new HaruDoc;
$page=$doc->addPage();

//load haru font Times-Roman
$font $doc->getFont('Times-Roman');

//Begin creating text on x100, y150
$page->beginText();
$page->setFontandSize($font12);
$page->textOut(100150$text);
$page->endText();

//Open as pdf
header('Content-type: application/pdf');
$doc->output();
?>
2011-06-09 05:53:56
http://php5.kiev.ua/manual/ru/harupage.textout.html
Автор:
The text shows up to the bottom right of the point (x,y).
2016-01-19 17:06:10
http://php5.kiev.ua/manual/ru/harupage.textout.html
The text is placed up and to the right of the point given. The point given is the baseline, left of the text.
2016-01-19 22:06:55
http://php5.kiev.ua/manual/ru/harupage.textout.html

    Поддержать сайт на родительском проекте КГБ