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

search for in the

HaruPage::showTextNextLine> <HaruPage::setWordSpace
[edit] Last updated: Fri, 17 May 2013

view this page in

HaruPage::showText

(PECL haru >= 0.0.1)

HaruPage::showTextPrint text at the current position of the page

Descrizione

bool HaruPage::showText ( string $text )

Prints out the text at the current position of the page.

Elenco dei parametri

text

The text to show.

Valori restituiti

Returns TRUE on success.

Errori/Eccezioni

Lancia un'eccezione HaruException in caso di errore.

Vedere anche:



add a note add a note User Contributed Notes HaruPage::showText - [1 notes]
up
0
aku at syuaa dot net
1 year ago
My First Hello Text

<?php

$text
= "Hello Text";

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

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

//Set margin top to 50 pixel
$mTop = 50;

//Set first yPos, you will need to reduce text height
$ypos = $page->getHeight()-$mTop-12;

$page->beginText();
$page->setFontandSize($font, 12);
$page->moveTextPos(100,$ypos,false);
$page->showText($text);
$page->endText();

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

/*[x]syuaa[x]*/
?>

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