PHP Manual
Prev |  | Next

# cpdf_begin_text

cpdf_begin_text -- Starts text section

## Description

`void cpdf_begin_text`(int pdf document);

The cpdf_begin_text() function starts a text section. It must be ended with cpdf_end_text().

Example 1. Text output
      1
      2 <?php cpdf_begin_text($pdf);
      3 cpdf_set_font($pdf, 16, "Helvetica", "WinAnsiEncoding");
      4 cpdf_text($pdf, 100, 100, "Some text");
      5 cpdf_end_text($pdf) ?>
      6

See also cpdf_end_text().

Prev | Home | Next
cpdf_set_current_page | Up | cpdf_end_text