Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
cpdf_begin_text

cpdf_begin_text

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

cpdf_begin_text -- Starts text section

Description

bool cpdf_begin_text ( int pdf_document )

Starts a text section.

The created text section must be ended with cpdf_end_text().

Parameters

pdf_document

The document handle, returned by cpdf_open().

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example 1. Text output

&#60;?php
cpdf_begin_text($pdf);
cpdf_set_font($pdf, 16, "Helvetica", "WinAnsiEncoding");
cpdf_text($pdf, 100, 100, "Some text");
cpdf_end_text($pdf)
?&#62;

See Also

cpdf_end_text()