printer_draw_text

(PECL)

printer_draw_text -- Dessine un texte

Description

void printer_draw_text ( resource printer_handle, string text, int x, int y )

printer_draw_text() dessine le texte text à la position x, y, en utilisant la police de caractères courante. printer_handle doit être une ressource d'imprimante valide.

Exemple 1. Exemple avec printer_draw_text()

<?php
$handle
= printer_open();
printer_start_doc($handle, "Mon Document");
printer_start_page($handle);

$font = printer_create_font("Arial", 72, 48, 400, false, false, false, 0);
printer_select_font($handle, $font);
printer_draw_text($handle, "test", 10, 10);
printer_delete_font($font);

printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
?>

Hosting by: Hurra Communications GmbH
Generated: 2007-01-26 18:02:14