html { padding:0px; margin:0px; } body { background-color: #e1ddd9; font-size: 12px; font-family: Verdana, Arial, SunSans-Regular, Sans-Serif; color:#564b47; padding:0px 20px; margin:0px; } #content { float: left; width: 75%; background-color: #fff; margin:0px 0px 50px 0px; overflow: auto; } cpdf_end_text

cpdf_end_text

(PHP 3 >= 3.0.8, PHP 4, PHP 5 <= 5.0.4)

cpdf_end_text -- Ends text section

Opis

bool cpdf_end_text ( int pdf_document )

Ends a text section which was started with cpdf_begin_text().

Parametry

pdf_document

Uchwyt dokumentu, zwrócony przez cpdf_open().

Zwracane wartości

Zwraca TRUE w przypadku sukcesu, FALSE w przypadku porażki.

Przykłady

Przykład 1. Text output

<?php
cpdf_begin_text
($pdf);
cpdf_set_font($pdf, 16, "Helvetica", "WinAnsiEncoding");
cpdf_text($pdf, 100, 100, "Some text");
cpdf_end_text($pdf)
?>

Patrz także

cpdf_begin_text()