Du bist hier: Tips » Scripte » PHP
PHP
Referenzliste

PDF_fit_textflow

PDF-Funktionen

    Befehl:
string PDF_fit_textflow ( resource $pdfdoc , int $textflow , float $llx , float $lly , float $urx , float $ury , string $optlist )


    Beschreibung:
Passt Textfluss in rechteckigen Bereich ein


    Aktiv in Version:
(PECL pdflib >= 2.0.0)

PDF_fit_textflow() - Beispiel


Eingabe:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
 
$thetext = "GEBEN SIE IHR MULTI-PAGE TEXT HIER EIN";
 
$textflow = PDF_create_textflow($pdf, $thetext, "fontname=Tahoma fontsize=9 encoding=winansi");
 
do {
    PDF_begin_page_ext($pdf, 612, 792, "");
    $result = PDF_fit_textflow($pdf, $textflow, 50, 120, 550, 720, "");
    PDF_end_page_ext($pdf, "");
} while (strcmp($result, "_stop"));
 
PDF_delete_textflow($pdf, $textflow);
 
?>


Beschreibung:
Gibt den n�chsten Abschnitt eines Textflusses in einen rechteckigen Bereich aus.
PDF-Funktionen
To Top