downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

HaruPage::textRect> <HaruPage::stroke
[edit] Last updated: Fri, 17 May 2013

view this page in

HaruPage::textOut

(PECL haru >= 0.0.1)

HaruPage::textOutImprime el texto en la posición especificada

Descripción

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

Imprime el texto en la posición especificada.

Parámetros

x

y

text

Valores devueltos

Devuelve TRUE en éxito.

Errores/Excepciones

Lanza una HaruException cuando se produce un error.

Ver también



add a note add a note User Contributed Notes HaruPage::textOut - [1 notes]
up
0
aku at syuaa dot net
1 year ago
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($font, 12);
$page->textOut(100, 150, $text);
$page->endText();

//Open as pdf
header('Content-type: application/pdf');
$doc->output();
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites