cvs: phpdoc-fr /reference/printer configure.xml functions.xml ini.xml reference.xml /reference/printer/functions printer-abort.xml printer-close.xml
printer-create-brush.xml printer-create-dc.xml printer-create-font.xml printer-create-pen.xml printer-delete-brush.xml printer-delete-dc.xml
printer-delete-font.xml printer-delete-pen.xml printer-draw-bmp.xml printer-draw-chord.xml printer-draw-elipse.xml printer-draw-line.xml
printer-draw-pie.xml printer-draw-rectangle.xml printer-draw-roundrect.xml printer-draw-text.xml printer-end-doc.xml printer-end-page.xml
printer-get-option.xml printer-list.xml printer-logical-fontheight.xml printer-open.xml printer-select-brush.xml printer-select-font.xml
printer-select-pen.xml printer-set-option.xml printer-start-doc.xml printer-start-page.xml printer-write.xml
| From: | Damien Seguy | Date: | Sat, 03 May 2003 15:13:56 +0000 |
| Subject: | cvs: phpdoc-fr /reference/printer configure.xml functions.xml ini.xml reference.xml /reference/printer/functions printer-abort.xml printer-close.xml printer-create-brush.xml printer-create-dc.xml printer-create-font.xml printer-create-pen.xml printer-delete-brush.xml printer-delete-dc.xml printer-delete-font.xml printer-delete-pen.xml printer-draw-bmp.xml printer-draw-chord.xml printer-draw-elipse.xml printer-draw-line.xml printer-draw-pie.xml printer-draw-rectangle.xml printer-draw-roundrect.xml printer-draw-text.xml printer-end-doc.xml printer-end-page.xml printer-get-option.xml printer-list.xml printer-logical-fontheight.xml printer-open.xml printer-select-brush.xml printer-select-font.xml printer-select-pen.xml printer-set-option.xml printer-start-doc.xml printer-start-page.xml printer-write.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-338@lists.php.net to get a copy of this message | ||
dams Sat May 3 11:13:56 2003 EDT
Added files:
/phpdoc-fr/reference/printer configure.xml functions.xml ini.xml
reference.xml
/phpdoc-fr/reference/printer/functions printer-abort.xml
printer-close.xml
printer-create-brush.xml
printer-create-dc.xml
printer-create-font.xml
printer-create-pen.xml
printer-delete-brush.xml
printer-delete-dc.xml
printer-delete-font.xml
printer-delete-pen.xml
printer-draw-bmp.xml
printer-draw-chord.xml
printer-draw-elipse.xml
printer-draw-line.xml
printer-draw-pie.xml
printer-draw-rectangle.xml
printer-draw-roundrect.xml
printer-draw-text.xml
printer-end-doc.xml
printer-end-page.xml
printer-get-option.xml
printer-list.xml
printer-logical-fontheight.xml
printer-open.xml
printer-select-brush.xml
printer-select-font.xml
printer-select-pen.xml
printer-set-option.xml
printer-start-doc.xml
printer-start-page.xml
printer-write.xml
Log:
original translation
Index: phpdoc-fr/reference/printer/configure.xml +++ phpdoc-fr/reference/printer/configure.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <section id="printer.installation"> &reftitle.install; <para> Ajoutez la ligne <filename>extension=php_printer.dll</filename> dans votre fichier &php.ini;. </para> </section> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions.xml +++ phpdoc-fr/reference/printer/functions.xml &reference.printer.functions.printer-abort; &reference.printer.functions.printer-close; &reference.printer.functions.printer-create-brush; &reference.printer.functions.printer-create-dc; &reference.printer.functions.printer-create-font; &reference.printer.functions.printer-create-pen; &reference.printer.functions.printer-delete-brush; &reference.printer.functions.printer-delete-dc; &reference.printer.functions.printer-delete-font; &reference.printer.functions.printer-delete-pen; &reference.printer.functions.printer-draw-bmp; &reference.printer.functions.printer-draw-chord; &reference.printer.functions.printer-draw-elipse; &reference.printer.functions.printer-draw-line; &reference.printer.functions.printer-draw-pie; &reference.printer.functions.printer-draw-rectangle; &reference.printer.functions.printer-draw-roundrect; &reference.printer.functions.printer-draw-text; &reference.printer.functions.printer-end-doc; &reference.printer.functions.printer-end-page; &reference.printer.functions.printer-get-option; &reference.printer.functions.printer-list; &reference.printer.functions.printer-logical-fontheight; &reference.printer.functions.printer-open; &reference.printer.functions.printer-select-brush; &reference.printer.functions.printer-select-font; &reference.printer.functions.printer-select-pen; &reference.printer.functions.printer-set-option; &reference.printer.functions.printer-start-doc; &reference.printer.functions.printer-start-page; &reference.printer.functions.printer-write; Index: phpdoc-fr/reference/printer/ini.xml +++ phpdoc-fr/reference/printer/ini.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <section id="printer.configuration"> &reftitle.runtime; &extension.runtime; <para> <table> &ini.table.title; <tgroup cols="3"> <thead> &ini.table.top; </thead> <tbody> <row> <entry>printer.default_printer</entry> <entry>""</entry> <entry>PHP_INI_ALL</entry> </row> </tbody> </tgroup> </table> &ini.table.bottom; </para> </section> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/reference.xml +++ phpdoc-fr/reference/printer/reference.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <reference id="ref.printer"> <title>Impression</title> <titleabbrev>Impressions</titleabbrev> <partintro> <section id="printer.intro"> &reftitle.intro; <para> Ces fonctions ne sont disponibles que sous Windows 9.x, ME, NT4 et 2000. Elles ont été ajoutées en PHP 4.0.4. </para> </section> &reference.printer.configure; &reference.printer.ini; </partintro> &reference.printer.functions; </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-abort.xml +++ phpdoc-fr/reference/printer/functions/printer-abort.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-abort"> <refnamediv> <refname>printer_abort</refname> <refpurpose>Efface la file d'attente de l'imprimante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_abort</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <methodname>printer_abort</methodname> efface la file d'attente de l'imprimante. </para> <para> <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <example> <title>Exemple avec <function>printer_abort</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_abort($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-close.xml +++ phpdoc-fr/reference/printer/functions/printer-close.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-close"> <refnamediv> <refname>printer_close</refname> <refpurpose>Ferme une connexion à une imprimante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_close</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_close</function> ferme la connexion avec l'imprmante représentée par la ressource <parameter>handle</parameter>. <function>printer_close</function> ferme aussi le contexte d'imprimante actif. </para> <para> <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <example> <title>Exemple avec <function>printer_close</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-create-brush.xml +++ phpdoc-fr/reference/printer/functions/printer-create-brush.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-create-brush"> <refnamediv> <refname>printer_create_brush</refname> <refpurpose>Crée une nouvelle brosse</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>printer_create_brush</methodname> <methodparam><type>int</type><parameter>style</parameter></methodparam> <methodparam><type>string</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <methodname>printer_create_brush</methodname> crée une nouvelle brosse et retourne une ressource de borsse. Une brosse est utilisée pour remplir des surfaces. Pour un exemple, voyez la fonction <function>printer_select_brush</function>. <parameter>color</parameter> doit être une couleur au format RGB héxadécimal, c'est à dire "000000" pour le noir. <parameter>style</parameter> doit prendre la valeur de l'une des constantes suivantes : <itemizedlist> <listitem> <simpara> <constant>PRINTER_BRUSH_SOLID</constant> : crée une brosse avec une couleur pleine. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_DIAGONAL</constant> : crée une brosse avec une direction diagonale ascendante, de droite à gauche ( / ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_CROSS</constant> : crée une brosse avec une forme de croix ( + ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_DIAGCROSS</constant> : crée une brosse avec une forme de croix diagonale ( x ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_FDIAGONAL</constant> : crée une brosse avec une direction diagonale ascendante, de gauche à droite ( \ ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_HORIZONTAL</constant> : crée une brosse avec une direction horizontale ( - ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_VERTICAL</constant> : crée une brosse avec une direction horizontale ( | ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_CUSTOM</constant> : crée une brosse à partir d'un fichier BMP. Le second paramètre est alors utilisé pour spécifier le chemin jusqu'au fichier BMP, au lieu d'être une couleur. </simpara> </listitem> </itemizedlist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-create-dc.xml +++ phpdoc-fr/reference/printer/functions/printer-create-dc.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-create-dc"> <refnamediv> <refname>printer_create_dc</refname> <refpurpose>Crée un contexte d'imprimante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_create_dc</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_create_dc</function> crée un nouveau contexte d'imprimante pour l'imprimante <parameter>handle</parameter>. Un contexte d'imprimante est utilisé pour paramétrer les objets graphiques d'un document. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <example> <title>Exemple avec <function>printer_create_dc</function></title> <programlisting role="php"> <![CDATA[ $handle = printer_open(); printer_start_doc($handle); printer_start_page($handle); printer_create_dc($handle); /* Exploitation du contexte */ printer_set_option($handle, PRINTER_TEXT_COLOR, "333333"); printer_draw_text($handle, 1, 1, "text"); printer_delete_dc($handle); /* Création d'un autre contexte */ printer_create_dc($handle); printer_set_option($handle, PRINTER_TEXT_COLOR, "000000"); printer_draw_text($handle, 1, 1, "text"); /* Exploitation du contexte */ printer_delete_dc($handle); printer_endpage($handle); printer_end_doc($handle); printer_close($handle); ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-create-font.xml +++ phpdoc-fr/reference/printer/functions/printer-create-font.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-create-font"> <refnamediv> <refname>printer_create_font</refname> <refpurpose>Crée une nouvelle police</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>printer_create_font</methodname> <methodparam><type>string</type><parameter>face</parameter></methodparam> <methodparam><type>int</type><parameter>height</parameter></methodparam> <methodparam><type>int</type><parameter>width</parameter></methodparam> <methodparam><type>int</type><parameter>font_weight</parameter></methodparam> <methodparam><type>bool</type><parameter>italic</parameter></methodparam> <methodparam><type>bool</type><parameter>underline</parameter></methodparam> <methodparam><type>bool</type><parameter>strikeout</parameter></methodparam> <methodparam><type>int</type><parameter>orientaton</parameter></methodparam> </methodsynopsis> <para> <methodname>printer_create_font</methodname> crée une nouvelle ressource de police. Pour un exemple, voir la fonction <function>printer_select_font</function>. <parameter>face</parameter> est le nom de la police. <parameter>height</parameter> est sa taille et <parameter>width</parameter> sa largeur. Le paramètre <parameter>font_weight</parameter> spécifie le poids de la police (400 est normal), et peut prendre comme valeur l'une des constantes suivantes : <itemizedlist> <listitem> <simpara> <constant>PRINTER_FW_THIN</constant> : fixe un poids de police mince (100). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FW_ULTRALIGHT</constant> : fixe un poids de police très léger (200). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FW_LIGHT</constant> : fixe un poids de police léger (300). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FW_NORMAL</constant> : fixe un poids de police normal (400). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FW_MEDIUM</constant> : fixe un poids de police moyen (500). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FW_BOLD</constant> : fixe un poids de police gras (700). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FW_ULTRABOLD</constant> : fixe un poids de police très gras (800). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FW_HEAVY</constant> : fixe un poids de police lourd (900). </simpara> </listitem> </itemizedlist> </para> <para> <parameter>italic</parameter> vaut be &true; pour indiquer que la police est en italique, et &false; sinon. </para> <para> <parameter>underline</parameter> vaut be &true; pour indiquer que la police est soulignée, et &false; sinon. </para> <para> <parameter>strikeout</parameter> vaut be &true; pour indiquer que la police est barrée, et &false; sinon. </para> <para> <parameter>orientation</parameter> spécifie l'orientaton. Pour un exemple, voyez la focntion <function>printer_select_ifont</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-create-pen.xml +++ phpdoc-fr/reference/printer/functions/printer-create-pen.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-create-pen"> <refnamediv> <refname>printer_create_pen</refname> <refpurpose>Crée un nouveau stylo</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>printer_create_pen</methodname> <methodparam><type>int</type><parameter>style</parameter></methodparam> <methodparam><type>int</type><parameter>width</parameter></methodparam> <methodparam><type>string</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <function>printer_create_pen</function> crée un nouveau stylo et retourne une ressource. Un stylo est utilisé pour dessiner des lignes et des courbes. Pour un exemple, voyez la fonction <function>printer_select_pen</function>. <parameter>color</parameter> doit être une couleur au format RGB héxadécimal, "000000" pour le noir. <parameter>width</parameter> spécifie la largeur du stylo. <parameter>style</parameter> doit être l'une des constantes suivantes : <itemizedlist> <listitem> <simpara> <constant>PRINTER_PEN_SOLID</constant>: crée un stylo plein. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PEN_DASH</constant>: crée un stylo pointillé avec des tirets. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PEN_DOT</constant>: crée un stylo pointillé avec des points. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PEN_DASHDOT</constant>: crée un stylo pointillé avec des tirets et des points. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PEN_DASHDOTDOT</constant>: crée un stylo pointillé avec des tirets et des doubles points. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PEN_INVISIBLE</constant>: crée un stylo invisible </simpara> </listitem> </itemizedlist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-delete-brush.xml +++ phpdoc-fr/reference/printer/functions/printer-delete-brush.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-delete-brush"> <refnamediv> <refname>printer_delete_brush</refname> <refpurpose>Delete a brush</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_delete_brush</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_delete_brush</function> efface la brosse représentée par sa ressource <parameter>handle</parameter>. Pour un exemple, voyez la fonction <function>printer_select_brush</function>. &return.success; <parameter>handle</parameter> doit être une ressource de brosse valide. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-delete-dc.xml +++ phpdoc-fr/reference/printer/functions/printer-delete-dc.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-delete-dc"> <refnamediv> <refname>printer_delete_dc</refname> <refpurpose>Delete a device context</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_delete_dc</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_delete_dc</function> efface le contexte représenté par sa ressource <parameter>handle</parameter>. Pour un exemple, voyez la fonction <function>printer_create_dc</function>. &return.success; <parameter>handle</parameter> doit être une ressource de contexte valide. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-delete-font.xml +++ phpdoc-fr/reference/printer/functions/printer-delete-font.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-delete-font"> <refnamediv> <refname>printer_delete_font</refname> <refpurpose>Efface une police</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_delete_font</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_delete_font</function> efface la police représentée par sa ressource <parameter>handle</parameter>. Pour un exemple, voyez la fonction <function>printer_select_font</function>. &return.success; <parameter>handle</parameter> doit être une ressource de police valide. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-delete-pen.xml +++ phpdoc-fr/reference/printer/functions/printer-delete-pen.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-delete-pen"> <refnamediv> <refname>printer_delete_pen</refname> <refpurpose>Efface un stylo</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_delete_pen</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_delete_pen</function> efface le stylo représenté par sa ressource <parameter>handle</parameter>. Pour un exemple, voyez la fonction <function>printer_select_pen</function>. &return.success; <parameter>handle</parameter> doit être une ressource de stylo valide. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-bmp.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-bmp.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-bmp"> <refnamediv> <refname>printer_draw_bmp</refname> <refpurpose>Dessine un fichier BMP</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_bmp</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>string</type><parameter>filename</parameter></methodparam> <methodparam><type>int</type><parameter>x</parameter></methodparam> <methodparam><type>int</type><parameter>y</parameter></methodparam> </methodsynopsis> <para> <function>printer_draw_bmp</function> dessine simplement l'image BMP <parameter>filename</parameter>, à la position <parameter>x</parameter>, <parameter>y</parameter>. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <para> &return.success; </para> <example> <title>Exemple avec <function>printer_draw_bmp</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "Mon Document"); printer_start_page($handle); printer_draw_bmp($handle, "c:\\image.bmp", 1, 1); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-chord.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-chord.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-chord"> <refnamediv> <refname>printer_draw_chord</refname> <refpurpose>Dessine un arc de cercle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_chord</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>rec_x</parameter></methodparam> <methodparam><type>int</type><parameter>rec_y</parameter></methodparam> <methodparam><type>int</type><parameter>rec_x1</parameter></methodparam> <methodparam><type>int</type><parameter>rec_y1</parameter></methodparam> <methodparam><type>int</type><parameter>rad_x</parameter></methodparam> <methodparam><type>int</type><parameter>rad_y</parameter></methodparam> <methodparam><type>int</type><parameter>rad_x1</parameter></methodparam> <methodparam><type>int</type><parameter>rad_y1</parameter></methodparam> </methodsynopsis> <para> <function>printer_draw_chord</function> dessine simplemet un arc de cercle. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <para> <parameter>rec_x</parameter> est l'absisse supérieure gauche du rectangle d'encadrement. </para> <para> <parameter>rec_y</parameter> est l'ordonnée supérieure gauche du rectangle d'encadrement. </para> <para> <parameter>rec_x1</parameter> est l'absisse inférieure droite du rectangle d'encadrement. </para> <para> <parameter>rec_y1</parameter> est l'ordonnée inférieure droite du rectangle d'encadrement. </para> <para> <parameter>rad_x</parameter> est l'absisse du point de début de l'arc. </para> <para> <parameter>rad_y</parameter> est l'ordonnée du point de début de l'arc. </para> <para> <parameter>rad_x1</parameter> est l'absisse du point de fin de l'arc. </para> <para> <parameter>rad_y1</parameter> est l'ordonnée du point de fin de l'arc. </para> <example> <title>Exemple avec <function>printer_draw_chord</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "My Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000"); printer_select_pen($handle, $pen); $brush = printer_create_brush(PRINTER_BRUSH_SOLID, "2222FF"); printer_select_brush($handle, $brush); printer_draw_chord($handle, 1, 1, 500, 500, 1, 1, 500, 1); printer_delete_brush($brush); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-elipse.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-elipse.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-elipse"> <refnamediv> <refname>printer_draw_elipse</refname> <refpurpose>Dessine une ellipse</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_elipse</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>ul_x</parameter></methodparam> <methodparam><type>int</type><parameter>ul_y</parameter></methodparam> <methodparam><type>int</type><parameter>lr_x</parameter></methodparam> <methodparam><type>int</type><parameter>lr_y</parameter></methodparam> </methodsynopsis> <para> <function>printer_draw_elipse</function> dessine une ellipse. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <para> <parameter>ul_x</parameter> est l'absisse supérieure gauche de l'ellipse. </para> <para> <parameter>ul_y</parameter> est l'ordonnée supérieure gauche de l'ellipse. </para> <para> <parameter>lr_x</parameter> est l'absisse inférieure droite de l'ellipse. </para> <para> <parameter>lr_y</parameter> est l'ordonnée inférieure droite de l'ellipse. </para> <example> <title>Exemple avec <function>printer_draw_elipse</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "My Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000"); printer_select_pen($handle, $pen); $brush = printer_create_brush(PRINTER_BRUSH_SOLID, "2222FF"); printer_select_brush($handle, $brush); printer_draw_elipse($handle, 1, 1, 500, 500); printer_delete_brush($brush); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-line.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-line.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-line"> <refnamediv> <refname>printer_draw_line</refname> <refpurpose>Dessine une ligne</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_line</methodname> <methodparam><type>resource</type><parameter>printer_handle</parameter></methodparam> <methodparam><type>int</type><parameter>from_x</parameter></methodparam> <methodparam><type>int</type><parameter>from_y</parameter></methodparam> <methodparam><type>int</type><parameter>to_x</parameter></methodparam> <methodparam><type>int</type><parameter>to_y</parameter></methodparam> </methodsynopsis> <para> <methodname>printer_draw_line</methodname> dessine une ligne entre les points de coordonnées <parameter>from_x</parameter>, <parameter>from_y</parameter> et <parameter>to_x</parameter>, <parameter>to_y</parameter> en utilisant le stylo courant. <parameter>printer_handle</parameter> doit être une ressource d'imprimante valide. </para> <example> <title>Exemple <function>printer_draw_line</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "My Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 30, "000000"); printer_select_pen($handle, $pen); printer_draw_line($handle, 1, 10, 1000, 10); printer_draw_line($handle, 1, 60, 500, 60); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-pie.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-pie.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-pie"> <refnamediv> <refname>printer_draw_pie</refname> <refpurpose>Dessine un secteur angulaire</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_pie</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>rec_x</parameter></methodparam> <methodparam><type>int</type><parameter>rec_y</parameter></methodparam> <methodparam><type>int</type><parameter>rec_x1</parameter></methodparam> <methodparam><type>int</type><parameter>rec_y1</parameter></methodparam> <methodparam><type>int</type><parameter>rad1_x</parameter></methodparam> <methodparam><type>int</type><parameter>rad1_y</parameter></methodparam> <methodparam><type>int</type><parameter>rad2_x</parameter></methodparam> <methodparam><type>int</type><parameter>rad2_y</parameter></methodparam> </methodsynopsis> <para> <function>printer_draw_pie</function> dessine un secteur angulaire. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <para> <parameter>rec_x</parameter> est l'absisse supérieure gauche du rectangle d'encadrement. </para> <para> <parameter>rec_y</parameter> est l'ordonnée supérieure gauche du rectangle d'encadrement. </para> <para> <parameter>rec_x1</parameter> est l'absisse inférieure droite du rectangle d'encadrement. </para> <para> <parameter>rec_y1</parameter> est l'ordonnée inférieure droite du rectangle d'encadrement. </para> <para> <parameter>rad_x</parameter> est l'absisse du point de début de l'arc. </para> <para> <parameter>rad_y</parameter> est l'ordonnée du point de début de l'arc. </para> <para> <parameter>rad_x1</parameter> est l'absisse du point de fin de l'arc. </para> <para> <parameter>rad_y1</parameter> est l'ordonnée du point de fin de l'arc. </para> <example> <title>Exemple <function>printer_draw_pie</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "Mon Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000"); printer_select_pen($handle, $pen); $brush = printer_create_brush(PRINTER_BRUSH_SOLID, "2222FF"); printer_select_brush($handle, $brush); printer_draw_pie($handle, 1, 1, 500, 500, 1, 1, 500, 1); printer_delete_brush($brush); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-rectangle.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-rectangle.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-rectangle"> <refnamediv> <refname>printer_draw_rectangle</refname> <refpurpose>Dessine un rectangle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_rectangle</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>ul_x</parameter></methodparam> <methodparam><type>int</type><parameter>ul_y</parameter></methodparam> <methodparam><type>int</type><parameter>lr_x</parameter></methodparam> <methodparam><type>int</type><parameter>lr_y</parameter></methodparam> </methodsynopsis> <para> <function>printer_draw_rectangle</function> dessine un rectangle. </para> <para> <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <para> <parameter>ul_x</parameter> est l'absisse du coin supérieur gauche du rectangle. </para> <para> <parameter>ul_y</parameter> est l'ordonnée du coin supérieur gauche du rectangle. </para> <para> <parameter>lr_x</parameter> est l'absisse du coin inférieur droit du rectangle. </para> <para> <parameter>lr_y</parameter> est l'ordonnée du coin inférieur droit du rectangle. </para> <example> <title>Exemple <function>printer_draw_rectangle</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "Mon Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000"); printer_select_pen($handle, $pen); $brush = printer_create_brush(PRINTER_BRUSH_SOLID, "2222FF"); printer_select_brush($handle, $brush); printer_draw_rectangle($handle, 1, 1, 500, 500); printer_delete_brush($brush); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-roundrect.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-roundrect.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-roundrect"> <refnamediv> <refname>printer_draw_roundrect</refname> <refpurpose>Dessine un rectangle, avec des coins arrondis</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_roundrect</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>ul_x</parameter></methodparam> <methodparam><type>int</type><parameter>ul_y</parameter></methodparam> <methodparam><type>int</type><parameter>lr_x</parameter></methodparam> <methodparam><type>int</type><parameter>lr_y</parameter></methodparam> <methodparam><type>int</type><parameter>width</parameter></methodparam> <methodparam><type>int</type><parameter>height</parameter></methodparam> </methodsynopsis> <para> <function>printer_draw_roundrect</function> dessine un rectangle, avec des coins arrondis. </para> <para> <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <para> <parameter>ul_x</parameter> est l'absisse du coin supérieur gauche du rectangle. </para> <para> <parameter>ul_y</parameter> est l'ordonnée du coin supérieur gauche du rectangle. </para> <para> <parameter>lr_x</parameter> est l'absisse du coin inférieur droit du rectangle. </para> <para> <parameter>lr_y</parameter> est l'ordonnée du coin inférieur droit du rectangle. </para> <para> <parameter>width</parameter> est la largeur de l'ellipse. </para> <para> <parameter>height</parameter> est la longueur de l'ellipse. </para> <example> <title>Exemple avec <function>printer_draw_roundrect</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "My Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000"); printer_select_pen($handle, $pen); $brush = printer_create_brush(PRINTER_BRUSH_SOLID, "2222FF"); printer_select_brush($handle, $brush); printer_draw_roundrect($handle, 1, 1, 500, 500, 200, 200); printer_delete_brush($brush); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-text.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-text.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-text"> <refnamediv> <refname>printer_draw_text</refname> <refpurpose>Dessine un texte</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_text</methodname> <methodparam><type>resource</type><parameter>printer_handle</parameter></methodparam> <methodparam><type>string</type><parameter>text</parameter></methodparam> <methodparam><type>int</type><parameter>x</parameter></methodparam> <methodparam><type>int</type><parameter>y</parameter></methodparam> </methodsynopsis> <para> <function>printer_draw_text</function> desine le texte <parameter>text</parameter> à la position <parameter>x</parameter>, <parameter>y</parameter>, en utilisant la police de caractères courante. <parameter>printer_handle</parameter> doit être une ressource d'imprimante valide. </para> <example> <title>Exemple avec <function>printer_draw_text</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "My 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); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-end-doc.xml +++ phpdoc-fr/reference/printer/functions/printer-end-doc.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-end-doc"> <refnamediv> <refname>printer_end_doc</refname> <refpurpose>Ferme le document</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_end_doc</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <methodname>printer_end_doc</methodname> ferme le document dans la file d'attente de l'imprimante. Il est maintenant prêt à être imprimé. Pour un exemple, voyez la fonction <function>printer_start_doc</function>. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-end-page.xml +++ phpdoc-fr/reference/printer/functions/printer-end-page.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-end-page"> <refnamediv> <refname>printer_end_page</refname> <refpurpose>Ferme la page active</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_end_page</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_end_page</function> ferme la page active du document en cours. Pour un exemple, voyez la fonction <function>printer_start_doc</function>. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-get-option.xml +++ phpdoc-fr/reference/printer/functions/printer-get-option.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-get-option"> <refnamediv> <refname>printer_get_option</refname> <refpurpose>Lit les informations de configuration de l'imprimante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>printer_get_option</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>string</type><parameter>option</parameter></methodparam> </methodsynopsis> <para> <function>printer_get_option</function> lit la configuration de l'option <parameter>option</parameter>. <parameter>handle</parameter> doit être une ressource d'imprimante valide. Lisez la documentation de <function>printer_set_option</function> pour connaître les valeurs possibles du paramètre <parameter>option</parameter>. De plus, les valeurs options suivantes sont accessibles en lecture : <itemizedlist> <listitem> <simpara> <constant>PRINTER_DEVICENAME</constant> retourne le nom de device de l'imprimante. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_DRIVERVERSION</constant> retourne la version du pilote de l'imprimante. </simpara> </listitem> </itemizedlist> </para> <example> <title><function>printer_get_option</function> example</title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); print printer_get_option($handle, PRINTER_DRIVERVERSION); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-list.xml +++ phpdoc-fr/reference/printer/functions/printer-list.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-list"> <refnamediv> <refname>printer_list</refname> <refpurpose>Retourne la liste des imprimantes attachées à un serveur</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>array</type><methodname>printer_list</methodname> <methodparam><type>int</type><parameter>enumtype</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>name</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>level</parameter></methodparam> </methodsynopsis> <para> <function>printer_list</function> liste les imprimantes disponibles et leur fonctionnalités. <parameter>level</parameter> représente le niveau d'information demandé. Il peut prendre les valeurs de 1,2,4 ou 5. <parameter>enumtype</parameter> doit être l'une des constantes suivantes : <itemizedlist> <listitem> <simpara> <constant>PRINTER_ENUM_LOCAL</constant>: Liste les imprimantes locales. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_NAME</constant>: liste des imprimantes de <parameter>name</parameter>, qui peut être un serveur, un domaine ou un fournisseur d'impression. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_SHARED</constant>: ce paramètre ne peut être utilisé seul, il doit être combiné avec d'autres paramètres, grâce à l'opérateur OR. <constant>PRINTER_ENUM_SHARED</constant> détecte les imprimantes localement partagées. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_DEFAULT</constant>: (Win9.x uniquement) liste l'imprimante par défaut. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_CONNECTIONS</constant>: (WinNT/2000 uniquement) liste les imprimantes avec lesquelles l'utilisateur a établit une connexion. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_NETWORK</constant>: (WinNT/2000 uniquement) liste les imprimantes réseau du domaine de l'ordinateur. Valide uniquement si <parameter>level</parameter> vaut 1. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_REMOTE</constant>: (WinNT/2000 uniquement) liste les imprimantes réseau et les serveurs d'impression du domaine de l'ordinateur. Valide uniquement si <parameter>level</parameter> vaut 1. </simpara> </listitem> </itemizedlist> </para> <example> <title>Exemple avec <function>printer_list</function></title> <programlisting role="php"> <![CDATA[ <?php /* liste les imprimantes partagées locales */ var_dump( printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_SHARED) ); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-logical-fontheight.xml +++ phpdoc-fr/reference/printer/functions/printer-logical-fontheight.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-logical-fontheight"> <refnamediv> <refname>printer_logical_fontheight</refname> <refpurpose>Lit la taille logique de la police</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>printer_logical_fontheight</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>height</parameter></methodparam> </methodsynopsis> <para> <function>printer_logical_fontheight</function> calcule la taille logique de la police pour la taille de <parameter>height</parameter>. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <example> <title> Exemple avec <function>printer_logical_fontheight</function> </title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); print printer_logical_fontheight($handle, 72); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-open.xml +++ phpdoc-fr/reference/printer/functions/printer-open.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-open"> <refnamediv> <refname>printer_open</refname> <refpurpose>Ouvre une connexion à une imprimante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>printer_open</methodname> <methodparam choice="opt"><type>string</type><parameter>devicename</parameter></methodparam> </methodsynopsis> <para> <function>printer_open</function> tente d'ouvrir une connexion à l'imprimante <parameter>devicename</parameter>, puir retourne une ressource en cas de succès, et &false; sinon. </para> <para> Si aucun paramètre n'est fourni, <function>printer_open</function> tente d'ouvrir une connexion avec l'imprimante par défaut. Si elle n'est pas détectée dans le fichier &php.ini; avec la directive <literal>printer.default_printer</literal>, &php; essaie de la détecter. </para> <para> <function>printer_open</function> initialise aussi un contexte d'impression. </para> <example> <title>Exemple avec <function>printer_open</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open("HP Deskjet 930c"); $handle = printer_open(); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-select-brush.xml +++ phpdoc-fr/reference/printer/functions/printer-select-brush.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-select-brush"> <refnamediv> <refname>printer_select_brush</refname> <refpurpose>Selectionne une brosse</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_select_brush</methodname> <methodparam><type>resource</type><parameter>printer_handle</parameter></methodparam> <methodparam><type>resource</type><parameter>brush_handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_select_brush</function> sélectionne la brosse <parameter>brush_handle</parameter> comme brosse active pour la connexion à l'imprimante <parameter>printer_handle</parameter>. Une brosse est utilisée pour remplir des surfaces. Si vous dessinez un rectangle, une brosse sera nécessaire pour dessiner le contenu, et un stylo pour dessiner les bords. Si vous n'avez pas sélectionné de brosse avant de dessiner des formes, elles ne seront pas remplies. <parameter>printer_handle</parameter> doit être une ressource d'imprimante valide. <parameter>brush_handle</parameter> doit être une ressource de brosse valide. </para> <example> <title> Exemple avec <function>printer_select_brush</function> </title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "My Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000"); printer_select_pen($handle, $pen); $brush = printer_create_brush(PRINTER_BRUSH_CUSTOM, "c:\\brush.bmp"); printer_select_brush($handle, $brush); printer_draw_rectangle($handle, 1,1,500,500); printer_delete_brush($brush); $brush = printer_create_brush(PRINTER_BRUSH_SOLID, "000000"); printer_select_brush($handle, $brush); printer_draw_rectangle($handle, 1,501,500,1001); printer_delete_brush($brush); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-select-font.xml +++ phpdoc-fr/reference/printer/functions/printer-select-font.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-select-font"> <refnamediv> <refname>printer_select_font</refname> <refpurpose>Selectionne une police de caractères</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_select_font</methodname> <methodparam><type>resource</type><parameter>printer_handle</parameter></methodparam> <methodparam><type>resource</type><parameter>font_handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_select_font</function> sélionne la police <parameter>font_handle</parameter> pour écrire le texte sur la connexion à l'imprimante <parameter>printer_handle</parameter>. <parameter>printer_handle</parameter> doit être une ressource d'imprimante valide. <parameter>font_handle</parameter> doit être une ressource de police de caractères valide. </para> <example> <title> Exemple avec <function>printer_select_font</function> </title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "My Document"); printer_start_page($handle); $font = printer_create_font("Arial", 148, 76, PRINTER_FW_MEDIUM, false, false, false, -50); printer_select_font($handle, $font); printer_draw_text($handle, "PHP is simply cool", 40, 40); printer_delete_font($font); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-select-pen.xml +++ phpdoc-fr/reference/printer/functions/printer-select-pen.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-select-pen"> <refnamediv> <refname>printer_select_pen</refname> <refpurpose>Select a pen</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_select_pen</methodname> <methodparam><type>resource</type><parameter>printer_handle</parameter></methodparam> <methodparam><type>resource</type><parameter>pen_handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_select_pen</function> sélectionne le stylo <parameter>pen_handle</parameter> comme brosse active pour la connexion à l'imprimante <parameter>printer_handle</parameter>. Un stylo est utilisé pour dessiner les bords des surfaces. Si vous dessinez un rectangle, une brosse sera nécessaire pour dessiner le contenu, et un stylo pour dessiner les bords. Si vous n'avez pas sélectionné de brosse avant de dessiner des formes, elles ne seront pas remplies. <parameter>printer_handle</parameter> doit être une ressource d'imprimante valide. <parameter>brush_handle</parameter> doit être une ressource de brosse valide. </para> <example> <title> Exemple avec <function>printer_select_pen</function> </title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "Mon Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 30, "2222FF"); printer_select_pen($handle, $pen); printer_draw_line($handle, 1, 60, 500, 60); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-set-option.xml +++ phpdoc-fr/reference/printer/functions/printer-set-option.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-set-option"> <refnamediv> <refname>printer_set_option</refname> <refpurpose>Configure la connexion à l'imprimante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_set_option</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>option</parameter></methodparam> <methodparam><type>mixed</type><parameter>value</parameter></methodparam> </methodsynopsis> <para> <methodname>printer_set_option</methodname> modifie les options suivantes pour la connexion à l'imprimante <parameter>handle</parameter>. <parameter>handle</parameter> doit être une ressource d'imprimante valide. <parameter>option</parameter> peut être l'une des constantes suivantes : <itemizedlist> <listitem> <simpara> <constant>PRINTER_COPIES</constant> : indique le nombre de copie à imprimer. <parameter>value</parameter> doit être un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_MODE</constant> : spécifie le type de data ("text", "raw' ou "emf"), <parameter>value</parameter>doit être une &string;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TITLE</constant> : spécifie le nom du document, <parameter>value</parameter> doit être une &string;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ORIENTATION</constant> : spécifie l'orientation du papier, <parameter>value</parameter> peut être <constant>PRINTER_ORIENTATION_PORTRAIT</constant> ou <constant>PRINTER_ORIENTATION_LANDSCAPE</constant> </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_RESOLUTION_Y</constant> : spécifie la résolution en ordonnées, en DPI, <parameter>value</parameter> doit être un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_RESOLUTION_X</constant> : spécifie la résolution en absisse, en DPI, <parameter>value</parameter> doit être un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PAPER_FORMAT</constant> : spécifie un format de papier prédéfini : donnez à <parameter>value</parameter> la valeur de <constant>PRINTER_FORMAT_CUSTOM</constant> si vous souhaitez utiliser un format de papier personnalisé, grâce aux constantes <constant>PRINTER_PAPER_WIDTH</constant> et <constant>PRINTER_PAPER_LENGTH</constant>. <parameter>value</parameter> peut alors être l'une des constantes suivantes : </simpara> <itemizedlist> <listitem> <simpara> <constant> PRINTER_FORMAT_CUSTOM</constant> : vous laisse spécifier le format de papier. </simpara> </listitem> <listitem> <simpara> <constant> PRINTER_FORMAT_LETTER</constant> : spécifie le format standard "letter" (8 1/2 par 11 pouces (2.54cm)). </simpara> </listitem> <listitem> <simpara> <constant> PRINTER_FORMAT_LETTER</constant> : spécifie le format standard "legal" (8 1/2 par 14 pouces (2.54cm)). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_A3</constant> : spécifie le format standard "A3" (297 par 420 millimètres). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_A4</constant> : spécifie le format standard "A4" (210 par 297 millimètres). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_A5</constant> : spécifie le format standard "A5" (148 par 210 millimètres). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_B4</constant> : spécifie le format standard "B4" (250 par 354 millimètres). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_B5</constant> : spécifie le format standard "B5" (182 par 257 millimètres). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_FOLIO</constant> : spécifie le format standard "FOLIO" (8 1/2 par 13 pouces (2.54cm)). </simpara> </listitem> </itemizedlist> </listitem> <listitem> <simpara> <constant>PRINTER_PAPER_LENGTH</constant> : si <constant>PRINTER_PAPER_FORMAT</constant> vaut <constant>PRINTER_FORMAT_CUSTOM</constant>, <constant>PRINTER_PAPER_LENGTH</constant> spécifie une longueur personnalisée de papier, en millimètres. <parameter>value</parameter> doit être un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PAPER_WIDTH</constant> : si <constant>PRINTER_PAPER_FORMAT</constant> vaut <constant>PRINTER_FORMAT_CUSTOM</constant>, <constant>PRINTER_PAPER_WIDTH</constant> spécifie une largeur personnalisée de papier, en millimètres. <parameter>value</parameter> doit être un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_SCALE</constant> : spécifie le facteur de mise à l'échelle du document. La taille physique de la page imprimée est alors mise à l'échelle avec un facteur égal à <parameter>value</parameter>/100. Par exemple, si vous donnez un facteur d'échelle de 50, l'impression sera de la moitié de la taille du document original. <parameter>value</parameter> doit être un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BACKGROUND_COLOR</constant> : spécifie la couleur de fond pour le contexte actuel. <parameter>value</parameter> doit être une &string; contenant une couleur au format RGB hexadécimal : par exemple, "005533". </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TEXT_COLOR</constant> : spécifie la couleur du texte pour ce contexte d'imprimante. <parameter>value</parameter> doit être une &string; contenant une couleur au format RGB hexadécimal : par exemple, "005533". </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TEXT_ALIGN</constant> : spécifie l'alignement du etxte pour le contexte d'imprimante. <parameter>value</parameter> peut être une combinaison, avec l'opérateur OR, des constantes suivantes : </simpara> <itemizedlist> <listitem> <simpara> <constant>PRINTER_TA_BASELINE</constant> : le texte sera alignée sur la ligne de base. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TA_BOTTOM</constant> : le texte sera alignée sur la ligne de fond. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TA_TOP</constant> : le texte sera alignée sur la ligne de haut. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TA_CENTER</constant> : le texte sera alignée au centre. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TA_LEFT</constant> : le texte sera alignée à gauche. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TA_RIGHT</constant> : le texte sera alignée à droite. </simpara> </listitem> </itemizedlist> </listitem> </itemizedlist> </para> <example> <title>Exemple avec <function>printer_set_option</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_set_option($handle, PRINTER_SCALE, 75); printer_set_option($handle, PRINTER_TEXT_ALIGN, PRINTER_TA_LEFT); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-start-doc.xml +++ phpdoc-fr/reference/printer/functions/printer-start-doc.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-start-doc"> <refnamediv> <refname>printer_start_doc</refname> <refpurpose>Commence un nouveau document</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_start_doc</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>document</parameter></methodparam> </methodsynopsis> <para> <function>printer_start_doc</function> crée un nouveau document dans la file d'attente de l'imprimante <parameter>handle</parameter>. Un document peut contenir plusieurs pages, et il est programmé pour s'imprimer. <parameter>handle</parameter> doit être une ressource d'imprimante valide. Le paramètre optionnel <parameter>document</parameter> sert à donner un nom au document. </para> <example> <title>Exemple avec <function>printer_start_doc</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "Mon Document"); printer_start_page($handle); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-start-page.xml +++ phpdoc-fr/reference/printer/functions/printer-start-page.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-start-page"> <refnamediv> <refname>printer_start_page</refname> <refpurpose>Commence une nouvelle page</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_start_page</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_start_page</function> crée une nouvelle page pour le document actif. Pour un exemple, voyez la fonction <function>printer_start_doc</function>. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-write.xml +++ phpdoc-fr/reference/printer/functions/printer-write.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-write"> <refnamediv> <refname>printer_write</refname> <refpurpose>Ecrit des données sur l'imprimante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_write</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>string</type><parameter>content</parameter></methodparam> </methodsynopsis> <para> <function>printer_write</function> écrit le contenu de la variable <parameter>content</parameter> directement sur l'imprimante <parameter>handle</parameter>. &return.success; </para> <para> <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <example><title>Exemple avec <function>printer_write</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_write($handle, "Text to print"); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
Index: phpdoc-fr/reference/printer/configure.xml +++ phpdoc-fr/reference/printer/configure.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <section id="printer.installation"> &reftitle.install; <para> Ajoutez la ligne <filename>extension=php_printer.dll</filename> dans votre fichier &php.ini;. </para> </section> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions.xml +++ phpdoc-fr/reference/printer/functions.xml &reference.printer.functions.printer-abort; &reference.printer.functions.printer-close; &reference.printer.functions.printer-create-brush; &reference.printer.functions.printer-create-dc; &reference.printer.functions.printer-create-font; &reference.printer.functions.printer-create-pen; &reference.printer.functions.printer-delete-brush; &reference.printer.functions.printer-delete-dc; &reference.printer.functions.printer-delete-font; &reference.printer.functions.printer-delete-pen; &reference.printer.functions.printer-draw-bmp; &reference.printer.functions.printer-draw-chord; &reference.printer.functions.printer-draw-elipse; &reference.printer.functions.printer-draw-line; &reference.printer.functions.printer-draw-pie; &reference.printer.functions.printer-draw-rectangle; &reference.printer.functions.printer-draw-roundrect; &reference.printer.functions.printer-draw-text; &reference.printer.functions.printer-end-doc; &reference.printer.functions.printer-end-page; &reference.printer.functions.printer-get-option; &reference.printer.functions.printer-list; &reference.printer.functions.printer-logical-fontheight; &reference.printer.functions.printer-open; &reference.printer.functions.printer-select-brush; &reference.printer.functions.printer-select-font; &reference.printer.functions.printer-select-pen; &reference.printer.functions.printer-set-option; &reference.printer.functions.printer-start-doc; &reference.printer.functions.printer-start-page; &reference.printer.functions.printer-write; Index: phpdoc-fr/reference/printer/ini.xml +++ phpdoc-fr/reference/printer/ini.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <section id="printer.configuration"> &reftitle.runtime; &extension.runtime; <para> <table> &ini.table.title; <tgroup cols="3"> <thead> &ini.table.top; </thead> <tbody> <row> <entry>printer.default_printer</entry> <entry>""</entry> <entry>PHP_INI_ALL</entry> </row> </tbody> </tgroup> </table> &ini.table.bottom; </para> </section> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/reference.xml +++ phpdoc-fr/reference/printer/reference.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <reference id="ref.printer"> <title>Impression</title> <titleabbrev>Impressions</titleabbrev> <partintro> <section id="printer.intro"> &reftitle.intro; <para> Ces fonctions ne sont disponibles que sous Windows 9.x, ME, NT4 et 2000. Elles ont été ajoutées en PHP 4.0.4. </para> </section> &reference.printer.configure; &reference.printer.ini; </partintro> &reference.printer.functions; </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-abort.xml +++ phpdoc-fr/reference/printer/functions/printer-abort.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-abort"> <refnamediv> <refname>printer_abort</refname> <refpurpose>Efface la file d'attente de l'imprimante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_abort</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <methodname>printer_abort</methodname> efface la file d'attente de l'imprimante. </para> <para> <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <example> <title>Exemple avec <function>printer_abort</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_abort($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-close.xml +++ phpdoc-fr/reference/printer/functions/printer-close.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-close"> <refnamediv> <refname>printer_close</refname> <refpurpose>Ferme une connexion à une imprimante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_close</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_close</function> ferme la connexion avec l'imprmante représentée par la ressource <parameter>handle</parameter>. <function>printer_close</function> ferme aussi le contexte d'imprimante actif. </para> <para> <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <example> <title>Exemple avec <function>printer_close</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-create-brush.xml +++ phpdoc-fr/reference/printer/functions/printer-create-brush.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-create-brush"> <refnamediv> <refname>printer_create_brush</refname> <refpurpose>Crée une nouvelle brosse</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>printer_create_brush</methodname> <methodparam><type>int</type><parameter>style</parameter></methodparam> <methodparam><type>string</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <methodname>printer_create_brush</methodname> crée une nouvelle brosse et retourne une ressource de borsse. Une brosse est utilisée pour remplir des surfaces. Pour un exemple, voyez la fonction <function>printer_select_brush</function>. <parameter>color</parameter> doit être une couleur au format RGB héxadécimal, c'est à dire "000000" pour le noir. <parameter>style</parameter> doit prendre la valeur de l'une des constantes suivantes : <itemizedlist> <listitem> <simpara> <constant>PRINTER_BRUSH_SOLID</constant> : crée une brosse avec une couleur pleine. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_DIAGONAL</constant> : crée une brosse avec une direction diagonale ascendante, de droite à gauche ( / ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_CROSS</constant> : crée une brosse avec une forme de croix ( + ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_DIAGCROSS</constant> : crée une brosse avec une forme de croix diagonale ( x ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_FDIAGONAL</constant> : crée une brosse avec une direction diagonale ascendante, de gauche à droite ( \ ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_HORIZONTAL</constant> : crée une brosse avec une direction horizontale ( - ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_VERTICAL</constant> : crée une brosse avec une direction horizontale ( | ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_CUSTOM</constant> : crée une brosse à partir d'un fichier BMP. Le second paramètre est alors utilisé pour spécifier le chemin jusqu'au fichier BMP, au lieu d'être une couleur. </simpara> </listitem> </itemizedlist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-create-dc.xml +++ phpdoc-fr/reference/printer/functions/printer-create-dc.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-create-dc"> <refnamediv> <refname>printer_create_dc</refname> <refpurpose>Crée un contexte d'imprimante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_create_dc</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_create_dc</function> crée un nouveau contexte d'imprimante pour l'imprimante <parameter>handle</parameter>. Un contexte d'imprimante est utilisé pour paramétrer les objets graphiques d'un document. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <example> <title>Exemple avec <function>printer_create_dc</function></title> <programlisting role="php"> <![CDATA[ $handle = printer_open(); printer_start_doc($handle); printer_start_page($handle); printer_create_dc($handle); /* Exploitation du contexte */ printer_set_option($handle, PRINTER_TEXT_COLOR, "333333"); printer_draw_text($handle, 1, 1, "text"); printer_delete_dc($handle); /* Création d'un autre contexte */ printer_create_dc($handle); printer_set_option($handle, PRINTER_TEXT_COLOR, "000000"); printer_draw_text($handle, 1, 1, "text"); /* Exploitation du contexte */ printer_delete_dc($handle); printer_endpage($handle); printer_end_doc($handle); printer_close($handle); ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-create-font.xml +++ phpdoc-fr/reference/printer/functions/printer-create-font.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-create-font"> <refnamediv> <refname>printer_create_font</refname> <refpurpose>Crée une nouvelle police</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>printer_create_font</methodname> <methodparam><type>string</type><parameter>face</parameter></methodparam> <methodparam><type>int</type><parameter>height</parameter></methodparam> <methodparam><type>int</type><parameter>width</parameter></methodparam> <methodparam><type>int</type><parameter>font_weight</parameter></methodparam> <methodparam><type>bool</type><parameter>italic</parameter></methodparam> <methodparam><type>bool</type><parameter>underline</parameter></methodparam> <methodparam><type>bool</type><parameter>strikeout</parameter></methodparam> <methodparam><type>int</type><parameter>orientaton</parameter></methodparam> </methodsynopsis> <para> <methodname>printer_create_font</methodname> crée une nouvelle ressource de police. Pour un exemple, voir la fonction <function>printer_select_font</function>. <parameter>face</parameter> est le nom de la police. <parameter>height</parameter> est sa taille et <parameter>width</parameter> sa largeur. Le paramètre <parameter>font_weight</parameter> spécifie le poids de la police (400 est normal), et peut prendre comme valeur l'une des constantes suivantes : <itemizedlist> <listitem> <simpara> <constant>PRINTER_FW_THIN</constant> : fixe un poids de police mince (100). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FW_ULTRALIGHT</constant> : fixe un poids de police très léger (200). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FW_LIGHT</constant> : fixe un poids de police léger (300). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FW_NORMAL</constant> : fixe un poids de police normal (400). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FW_MEDIUM</constant> : fixe un poids de police moyen (500). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FW_BOLD</constant> : fixe un poids de police gras (700). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FW_ULTRABOLD</constant> : fixe un poids de police très gras (800). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FW_HEAVY</constant> : fixe un poids de police lourd (900). </simpara> </listitem> </itemizedlist> </para> <para> <parameter>italic</parameter> vaut be &true; pour indiquer que la police est en italique, et &false; sinon. </para> <para> <parameter>underline</parameter> vaut be &true; pour indiquer que la police est soulignée, et &false; sinon. </para> <para> <parameter>strikeout</parameter> vaut be &true; pour indiquer que la police est barrée, et &false; sinon. </para> <para> <parameter>orientation</parameter> spécifie l'orientaton. Pour un exemple, voyez la focntion <function>printer_select_ifont</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-create-pen.xml +++ phpdoc-fr/reference/printer/functions/printer-create-pen.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-create-pen"> <refnamediv> <refname>printer_create_pen</refname> <refpurpose>Crée un nouveau stylo</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>printer_create_pen</methodname> <methodparam><type>int</type><parameter>style</parameter></methodparam> <methodparam><type>int</type><parameter>width</parameter></methodparam> <methodparam><type>string</type><parameter>color</parameter></methodparam> </methodsynopsis> <para> <function>printer_create_pen</function> crée un nouveau stylo et retourne une ressource. Un stylo est utilisé pour dessiner des lignes et des courbes. Pour un exemple, voyez la fonction <function>printer_select_pen</function>. <parameter>color</parameter> doit être une couleur au format RGB héxadécimal, "000000" pour le noir. <parameter>width</parameter> spécifie la largeur du stylo. <parameter>style</parameter> doit être l'une des constantes suivantes : <itemizedlist> <listitem> <simpara> <constant>PRINTER_PEN_SOLID</constant>: crée un stylo plein. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PEN_DASH</constant>: crée un stylo pointillé avec des tirets. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PEN_DOT</constant>: crée un stylo pointillé avec des points. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PEN_DASHDOT</constant>: crée un stylo pointillé avec des tirets et des points. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PEN_DASHDOTDOT</constant>: crée un stylo pointillé avec des tirets et des doubles points. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PEN_INVISIBLE</constant>: crée un stylo invisible </simpara> </listitem> </itemizedlist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-delete-brush.xml +++ phpdoc-fr/reference/printer/functions/printer-delete-brush.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-delete-brush"> <refnamediv> <refname>printer_delete_brush</refname> <refpurpose>Delete a brush</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_delete_brush</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_delete_brush</function> efface la brosse représentée par sa ressource <parameter>handle</parameter>. Pour un exemple, voyez la fonction <function>printer_select_brush</function>. &return.success; <parameter>handle</parameter> doit être une ressource de brosse valide. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-delete-dc.xml +++ phpdoc-fr/reference/printer/functions/printer-delete-dc.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-delete-dc"> <refnamediv> <refname>printer_delete_dc</refname> <refpurpose>Delete a device context</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_delete_dc</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_delete_dc</function> efface le contexte représenté par sa ressource <parameter>handle</parameter>. Pour un exemple, voyez la fonction <function>printer_create_dc</function>. &return.success; <parameter>handle</parameter> doit être une ressource de contexte valide. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-delete-font.xml +++ phpdoc-fr/reference/printer/functions/printer-delete-font.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-delete-font"> <refnamediv> <refname>printer_delete_font</refname> <refpurpose>Efface une police</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_delete_font</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_delete_font</function> efface la police représentée par sa ressource <parameter>handle</parameter>. Pour un exemple, voyez la fonction <function>printer_select_font</function>. &return.success; <parameter>handle</parameter> doit être une ressource de police valide. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-delete-pen.xml +++ phpdoc-fr/reference/printer/functions/printer-delete-pen.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-delete-pen"> <refnamediv> <refname>printer_delete_pen</refname> <refpurpose>Efface un stylo</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_delete_pen</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_delete_pen</function> efface le stylo représenté par sa ressource <parameter>handle</parameter>. Pour un exemple, voyez la fonction <function>printer_select_pen</function>. &return.success; <parameter>handle</parameter> doit être une ressource de stylo valide. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-bmp.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-bmp.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-bmp"> <refnamediv> <refname>printer_draw_bmp</refname> <refpurpose>Dessine un fichier BMP</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_bmp</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>string</type><parameter>filename</parameter></methodparam> <methodparam><type>int</type><parameter>x</parameter></methodparam> <methodparam><type>int</type><parameter>y</parameter></methodparam> </methodsynopsis> <para> <function>printer_draw_bmp</function> dessine simplement l'image BMP <parameter>filename</parameter>, à la position <parameter>x</parameter>, <parameter>y</parameter>. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <para> &return.success; </para> <example> <title>Exemple avec <function>printer_draw_bmp</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "Mon Document"); printer_start_page($handle); printer_draw_bmp($handle, "c:\\image.bmp", 1, 1); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-chord.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-chord.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-chord"> <refnamediv> <refname>printer_draw_chord</refname> <refpurpose>Dessine un arc de cercle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_chord</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>rec_x</parameter></methodparam> <methodparam><type>int</type><parameter>rec_y</parameter></methodparam> <methodparam><type>int</type><parameter>rec_x1</parameter></methodparam> <methodparam><type>int</type><parameter>rec_y1</parameter></methodparam> <methodparam><type>int</type><parameter>rad_x</parameter></methodparam> <methodparam><type>int</type><parameter>rad_y</parameter></methodparam> <methodparam><type>int</type><parameter>rad_x1</parameter></methodparam> <methodparam><type>int</type><parameter>rad_y1</parameter></methodparam> </methodsynopsis> <para> <function>printer_draw_chord</function> dessine simplemet un arc de cercle. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <para> <parameter>rec_x</parameter> est l'absisse supérieure gauche du rectangle d'encadrement. </para> <para> <parameter>rec_y</parameter> est l'ordonnée supérieure gauche du rectangle d'encadrement. </para> <para> <parameter>rec_x1</parameter> est l'absisse inférieure droite du rectangle d'encadrement. </para> <para> <parameter>rec_y1</parameter> est l'ordonnée inférieure droite du rectangle d'encadrement. </para> <para> <parameter>rad_x</parameter> est l'absisse du point de début de l'arc. </para> <para> <parameter>rad_y</parameter> est l'ordonnée du point de début de l'arc. </para> <para> <parameter>rad_x1</parameter> est l'absisse du point de fin de l'arc. </para> <para> <parameter>rad_y1</parameter> est l'ordonnée du point de fin de l'arc. </para> <example> <title>Exemple avec <function>printer_draw_chord</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "My Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000"); printer_select_pen($handle, $pen); $brush = printer_create_brush(PRINTER_BRUSH_SOLID, "2222FF"); printer_select_brush($handle, $brush); printer_draw_chord($handle, 1, 1, 500, 500, 1, 1, 500, 1); printer_delete_brush($brush); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-elipse.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-elipse.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-elipse"> <refnamediv> <refname>printer_draw_elipse</refname> <refpurpose>Dessine une ellipse</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_elipse</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>ul_x</parameter></methodparam> <methodparam><type>int</type><parameter>ul_y</parameter></methodparam> <methodparam><type>int</type><parameter>lr_x</parameter></methodparam> <methodparam><type>int</type><parameter>lr_y</parameter></methodparam> </methodsynopsis> <para> <function>printer_draw_elipse</function> dessine une ellipse. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <para> <parameter>ul_x</parameter> est l'absisse supérieure gauche de l'ellipse. </para> <para> <parameter>ul_y</parameter> est l'ordonnée supérieure gauche de l'ellipse. </para> <para> <parameter>lr_x</parameter> est l'absisse inférieure droite de l'ellipse. </para> <para> <parameter>lr_y</parameter> est l'ordonnée inférieure droite de l'ellipse. </para> <example> <title>Exemple avec <function>printer_draw_elipse</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "My Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000"); printer_select_pen($handle, $pen); $brush = printer_create_brush(PRINTER_BRUSH_SOLID, "2222FF"); printer_select_brush($handle, $brush); printer_draw_elipse($handle, 1, 1, 500, 500); printer_delete_brush($brush); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-line.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-line.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-line"> <refnamediv> <refname>printer_draw_line</refname> <refpurpose>Dessine une ligne</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_line</methodname> <methodparam><type>resource</type><parameter>printer_handle</parameter></methodparam> <methodparam><type>int</type><parameter>from_x</parameter></methodparam> <methodparam><type>int</type><parameter>from_y</parameter></methodparam> <methodparam><type>int</type><parameter>to_x</parameter></methodparam> <methodparam><type>int</type><parameter>to_y</parameter></methodparam> </methodsynopsis> <para> <methodname>printer_draw_line</methodname> dessine une ligne entre les points de coordonnées <parameter>from_x</parameter>, <parameter>from_y</parameter> et <parameter>to_x</parameter>, <parameter>to_y</parameter> en utilisant le stylo courant. <parameter>printer_handle</parameter> doit être une ressource d'imprimante valide. </para> <example> <title>Exemple <function>printer_draw_line</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "My Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 30, "000000"); printer_select_pen($handle, $pen); printer_draw_line($handle, 1, 10, 1000, 10); printer_draw_line($handle, 1, 60, 500, 60); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-pie.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-pie.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-pie"> <refnamediv> <refname>printer_draw_pie</refname> <refpurpose>Dessine un secteur angulaire</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_pie</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>rec_x</parameter></methodparam> <methodparam><type>int</type><parameter>rec_y</parameter></methodparam> <methodparam><type>int</type><parameter>rec_x1</parameter></methodparam> <methodparam><type>int</type><parameter>rec_y1</parameter></methodparam> <methodparam><type>int</type><parameter>rad1_x</parameter></methodparam> <methodparam><type>int</type><parameter>rad1_y</parameter></methodparam> <methodparam><type>int</type><parameter>rad2_x</parameter></methodparam> <methodparam><type>int</type><parameter>rad2_y</parameter></methodparam> </methodsynopsis> <para> <function>printer_draw_pie</function> dessine un secteur angulaire. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <para> <parameter>rec_x</parameter> est l'absisse supérieure gauche du rectangle d'encadrement. </para> <para> <parameter>rec_y</parameter> est l'ordonnée supérieure gauche du rectangle d'encadrement. </para> <para> <parameter>rec_x1</parameter> est l'absisse inférieure droite du rectangle d'encadrement. </para> <para> <parameter>rec_y1</parameter> est l'ordonnée inférieure droite du rectangle d'encadrement. </para> <para> <parameter>rad_x</parameter> est l'absisse du point de début de l'arc. </para> <para> <parameter>rad_y</parameter> est l'ordonnée du point de début de l'arc. </para> <para> <parameter>rad_x1</parameter> est l'absisse du point de fin de l'arc. </para> <para> <parameter>rad_y1</parameter> est l'ordonnée du point de fin de l'arc. </para> <example> <title>Exemple <function>printer_draw_pie</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "Mon Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000"); printer_select_pen($handle, $pen); $brush = printer_create_brush(PRINTER_BRUSH_SOLID, "2222FF"); printer_select_brush($handle, $brush); printer_draw_pie($handle, 1, 1, 500, 500, 1, 1, 500, 1); printer_delete_brush($brush); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-rectangle.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-rectangle.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-rectangle"> <refnamediv> <refname>printer_draw_rectangle</refname> <refpurpose>Dessine un rectangle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_rectangle</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>ul_x</parameter></methodparam> <methodparam><type>int</type><parameter>ul_y</parameter></methodparam> <methodparam><type>int</type><parameter>lr_x</parameter></methodparam> <methodparam><type>int</type><parameter>lr_y</parameter></methodparam> </methodsynopsis> <para> <function>printer_draw_rectangle</function> dessine un rectangle. </para> <para> <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <para> <parameter>ul_x</parameter> est l'absisse du coin supérieur gauche du rectangle. </para> <para> <parameter>ul_y</parameter> est l'ordonnée du coin supérieur gauche du rectangle. </para> <para> <parameter>lr_x</parameter> est l'absisse du coin inférieur droit du rectangle. </para> <para> <parameter>lr_y</parameter> est l'ordonnée du coin inférieur droit du rectangle. </para> <example> <title>Exemple <function>printer_draw_rectangle</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "Mon Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000"); printer_select_pen($handle, $pen); $brush = printer_create_brush(PRINTER_BRUSH_SOLID, "2222FF"); printer_select_brush($handle, $brush); printer_draw_rectangle($handle, 1, 1, 500, 500); printer_delete_brush($brush); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-roundrect.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-roundrect.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-roundrect"> <refnamediv> <refname>printer_draw_roundrect</refname> <refpurpose>Dessine un rectangle, avec des coins arrondis</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_roundrect</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>ul_x</parameter></methodparam> <methodparam><type>int</type><parameter>ul_y</parameter></methodparam> <methodparam><type>int</type><parameter>lr_x</parameter></methodparam> <methodparam><type>int</type><parameter>lr_y</parameter></methodparam> <methodparam><type>int</type><parameter>width</parameter></methodparam> <methodparam><type>int</type><parameter>height</parameter></methodparam> </methodsynopsis> <para> <function>printer_draw_roundrect</function> dessine un rectangle, avec des coins arrondis. </para> <para> <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <para> <parameter>ul_x</parameter> est l'absisse du coin supérieur gauche du rectangle. </para> <para> <parameter>ul_y</parameter> est l'ordonnée du coin supérieur gauche du rectangle. </para> <para> <parameter>lr_x</parameter> est l'absisse du coin inférieur droit du rectangle. </para> <para> <parameter>lr_y</parameter> est l'ordonnée du coin inférieur droit du rectangle. </para> <para> <parameter>width</parameter> est la largeur de l'ellipse. </para> <para> <parameter>height</parameter> est la longueur de l'ellipse. </para> <example> <title>Exemple avec <function>printer_draw_roundrect</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "My Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000"); printer_select_pen($handle, $pen); $brush = printer_create_brush(PRINTER_BRUSH_SOLID, "2222FF"); printer_select_brush($handle, $brush); printer_draw_roundrect($handle, 1, 1, 500, 500, 200, 200); printer_delete_brush($brush); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-draw-text.xml +++ phpdoc-fr/reference/printer/functions/printer-draw-text.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-draw-text"> <refnamediv> <refname>printer_draw_text</refname> <refpurpose>Dessine un texte</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_draw_text</methodname> <methodparam><type>resource</type><parameter>printer_handle</parameter></methodparam> <methodparam><type>string</type><parameter>text</parameter></methodparam> <methodparam><type>int</type><parameter>x</parameter></methodparam> <methodparam><type>int</type><parameter>y</parameter></methodparam> </methodsynopsis> <para> <function>printer_draw_text</function> desine le texte <parameter>text</parameter> à la position <parameter>x</parameter>, <parameter>y</parameter>, en utilisant la police de caractères courante. <parameter>printer_handle</parameter> doit être une ressource d'imprimante valide. </para> <example> <title>Exemple avec <function>printer_draw_text</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "My 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); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-end-doc.xml +++ phpdoc-fr/reference/printer/functions/printer-end-doc.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-end-doc"> <refnamediv> <refname>printer_end_doc</refname> <refpurpose>Ferme le document</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_end_doc</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <methodname>printer_end_doc</methodname> ferme le document dans la file d'attente de l'imprimante. Il est maintenant prêt à être imprimé. Pour un exemple, voyez la fonction <function>printer_start_doc</function>. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-end-page.xml +++ phpdoc-fr/reference/printer/functions/printer-end-page.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-end-page"> <refnamediv> <refname>printer_end_page</refname> <refpurpose>Ferme la page active</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_end_page</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_end_page</function> ferme la page active du document en cours. Pour un exemple, voyez la fonction <function>printer_start_doc</function>. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-get-option.xml +++ phpdoc-fr/reference/printer/functions/printer-get-option.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-get-option"> <refnamediv> <refname>printer_get_option</refname> <refpurpose>Lit les informations de configuration de l'imprimante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>printer_get_option</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>string</type><parameter>option</parameter></methodparam> </methodsynopsis> <para> <function>printer_get_option</function> lit la configuration de l'option <parameter>option</parameter>. <parameter>handle</parameter> doit être une ressource d'imprimante valide. Lisez la documentation de <function>printer_set_option</function> pour connaître les valeurs possibles du paramètre <parameter>option</parameter>. De plus, les valeurs options suivantes sont accessibles en lecture : <itemizedlist> <listitem> <simpara> <constant>PRINTER_DEVICENAME</constant> retourne le nom de device de l'imprimante. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_DRIVERVERSION</constant> retourne la version du pilote de l'imprimante. </simpara> </listitem> </itemizedlist> </para> <example> <title><function>printer_get_option</function> example</title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); print printer_get_option($handle, PRINTER_DRIVERVERSION); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-list.xml +++ phpdoc-fr/reference/printer/functions/printer-list.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-list"> <refnamediv> <refname>printer_list</refname> <refpurpose>Retourne la liste des imprimantes attachées à un serveur</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>array</type><methodname>printer_list</methodname> <methodparam><type>int</type><parameter>enumtype</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>name</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>level</parameter></methodparam> </methodsynopsis> <para> <function>printer_list</function> liste les imprimantes disponibles et leur fonctionnalités. <parameter>level</parameter> représente le niveau d'information demandé. Il peut prendre les valeurs de 1,2,4 ou 5. <parameter>enumtype</parameter> doit être l'une des constantes suivantes : <itemizedlist> <listitem> <simpara> <constant>PRINTER_ENUM_LOCAL</constant>: Liste les imprimantes locales. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_NAME</constant>: liste des imprimantes de <parameter>name</parameter>, qui peut être un serveur, un domaine ou un fournisseur d'impression. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_SHARED</constant>: ce paramètre ne peut être utilisé seul, il doit être combiné avec d'autres paramètres, grâce à l'opérateur OR. <constant>PRINTER_ENUM_SHARED</constant> détecte les imprimantes localement partagées. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_DEFAULT</constant>: (Win9.x uniquement) liste l'imprimante par défaut. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_CONNECTIONS</constant>: (WinNT/2000 uniquement) liste les imprimantes avec lesquelles l'utilisateur a établit une connexion. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_NETWORK</constant>: (WinNT/2000 uniquement) liste les imprimantes réseau du domaine de l'ordinateur. Valide uniquement si <parameter>level</parameter> vaut 1. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_REMOTE</constant>: (WinNT/2000 uniquement) liste les imprimantes réseau et les serveurs d'impression du domaine de l'ordinateur. Valide uniquement si <parameter>level</parameter> vaut 1. </simpara> </listitem> </itemizedlist> </para> <example> <title>Exemple avec <function>printer_list</function></title> <programlisting role="php"> <![CDATA[ <?php /* liste les imprimantes partagées locales */ var_dump( printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_SHARED) ); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-logical-fontheight.xml +++ phpdoc-fr/reference/printer/functions/printer-logical-fontheight.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-logical-fontheight"> <refnamediv> <refname>printer_logical_fontheight</refname> <refpurpose>Lit la taille logique de la police</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>printer_logical_fontheight</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>height</parameter></methodparam> </methodsynopsis> <para> <function>printer_logical_fontheight</function> calcule la taille logique de la police pour la taille de <parameter>height</parameter>. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <example> <title> Exemple avec <function>printer_logical_fontheight</function> </title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); print printer_logical_fontheight($handle, 72); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-open.xml +++ phpdoc-fr/reference/printer/functions/printer-open.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-open"> <refnamediv> <refname>printer_open</refname> <refpurpose>Ouvre une connexion à une imprimante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>printer_open</methodname> <methodparam choice="opt"><type>string</type><parameter>devicename</parameter></methodparam> </methodsynopsis> <para> <function>printer_open</function> tente d'ouvrir une connexion à l'imprimante <parameter>devicename</parameter>, puir retourne une ressource en cas de succès, et &false; sinon. </para> <para> Si aucun paramètre n'est fourni, <function>printer_open</function> tente d'ouvrir une connexion avec l'imprimante par défaut. Si elle n'est pas détectée dans le fichier &php.ini; avec la directive <literal>printer.default_printer</literal>, &php; essaie de la détecter. </para> <para> <function>printer_open</function> initialise aussi un contexte d'impression. </para> <example> <title>Exemple avec <function>printer_open</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open("HP Deskjet 930c"); $handle = printer_open(); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-select-brush.xml +++ phpdoc-fr/reference/printer/functions/printer-select-brush.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-select-brush"> <refnamediv> <refname>printer_select_brush</refname> <refpurpose>Selectionne une brosse</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_select_brush</methodname> <methodparam><type>resource</type><parameter>printer_handle</parameter></methodparam> <methodparam><type>resource</type><parameter>brush_handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_select_brush</function> sélectionne la brosse <parameter>brush_handle</parameter> comme brosse active pour la connexion à l'imprimante <parameter>printer_handle</parameter>. Une brosse est utilisée pour remplir des surfaces. Si vous dessinez un rectangle, une brosse sera nécessaire pour dessiner le contenu, et un stylo pour dessiner les bords. Si vous n'avez pas sélectionné de brosse avant de dessiner des formes, elles ne seront pas remplies. <parameter>printer_handle</parameter> doit être une ressource d'imprimante valide. <parameter>brush_handle</parameter> doit être une ressource de brosse valide. </para> <example> <title> Exemple avec <function>printer_select_brush</function> </title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "My Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000"); printer_select_pen($handle, $pen); $brush = printer_create_brush(PRINTER_BRUSH_CUSTOM, "c:\\brush.bmp"); printer_select_brush($handle, $brush); printer_draw_rectangle($handle, 1,1,500,500); printer_delete_brush($brush); $brush = printer_create_brush(PRINTER_BRUSH_SOLID, "000000"); printer_select_brush($handle, $brush); printer_draw_rectangle($handle, 1,501,500,1001); printer_delete_brush($brush); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-select-font.xml +++ phpdoc-fr/reference/printer/functions/printer-select-font.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-select-font"> <refnamediv> <refname>printer_select_font</refname> <refpurpose>Selectionne une police de caractères</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_select_font</methodname> <methodparam><type>resource</type><parameter>printer_handle</parameter></methodparam> <methodparam><type>resource</type><parameter>font_handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_select_font</function> sélionne la police <parameter>font_handle</parameter> pour écrire le texte sur la connexion à l'imprimante <parameter>printer_handle</parameter>. <parameter>printer_handle</parameter> doit être une ressource d'imprimante valide. <parameter>font_handle</parameter> doit être une ressource de police de caractères valide. </para> <example> <title> Exemple avec <function>printer_select_font</function> </title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "My Document"); printer_start_page($handle); $font = printer_create_font("Arial", 148, 76, PRINTER_FW_MEDIUM, false, false, false, -50); printer_select_font($handle, $font); printer_draw_text($handle, "PHP is simply cool", 40, 40); printer_delete_font($font); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-select-pen.xml +++ phpdoc-fr/reference/printer/functions/printer-select-pen.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-select-pen"> <refnamediv> <refname>printer_select_pen</refname> <refpurpose>Select a pen</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>printer_select_pen</methodname> <methodparam><type>resource</type><parameter>printer_handle</parameter></methodparam> <methodparam><type>resource</type><parameter>pen_handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_select_pen</function> sélectionne le stylo <parameter>pen_handle</parameter> comme brosse active pour la connexion à l'imprimante <parameter>printer_handle</parameter>. Un stylo est utilisé pour dessiner les bords des surfaces. Si vous dessinez un rectangle, une brosse sera nécessaire pour dessiner le contenu, et un stylo pour dessiner les bords. Si vous n'avez pas sélectionné de brosse avant de dessiner des formes, elles ne seront pas remplies. <parameter>printer_handle</parameter> doit être une ressource d'imprimante valide. <parameter>brush_handle</parameter> doit être une ressource de brosse valide. </para> <example> <title> Exemple avec <function>printer_select_pen</function> </title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "Mon Document"); printer_start_page($handle); $pen = printer_create_pen(PRINTER_PEN_SOLID, 30, "2222FF"); printer_select_pen($handle, $pen); printer_draw_line($handle, 1, 60, 500, 60); printer_delete_pen($pen); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-set-option.xml +++ phpdoc-fr/reference/printer/functions/printer-set-option.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-set-option"> <refnamediv> <refname>printer_set_option</refname> <refpurpose>Configure la connexion à l'imprimante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_set_option</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>option</parameter></methodparam> <methodparam><type>mixed</type><parameter>value</parameter></methodparam> </methodsynopsis> <para> <methodname>printer_set_option</methodname> modifie les options suivantes pour la connexion à l'imprimante <parameter>handle</parameter>. <parameter>handle</parameter> doit être une ressource d'imprimante valide. <parameter>option</parameter> peut être l'une des constantes suivantes : <itemizedlist> <listitem> <simpara> <constant>PRINTER_COPIES</constant> : indique le nombre de copie à imprimer. <parameter>value</parameter> doit être un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_MODE</constant> : spécifie le type de data ("text", "raw' ou "emf"), <parameter>value</parameter>doit être une &string;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TITLE</constant> : spécifie le nom du document, <parameter>value</parameter> doit être une &string;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ORIENTATION</constant> : spécifie l'orientation du papier, <parameter>value</parameter> peut être <constant>PRINTER_ORIENTATION_PORTRAIT</constant> ou <constant>PRINTER_ORIENTATION_LANDSCAPE</constant> </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_RESOLUTION_Y</constant> : spécifie la résolution en ordonnées, en DPI, <parameter>value</parameter> doit être un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_RESOLUTION_X</constant> : spécifie la résolution en absisse, en DPI, <parameter>value</parameter> doit être un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PAPER_FORMAT</constant> : spécifie un format de papier prédéfini : donnez à <parameter>value</parameter> la valeur de <constant>PRINTER_FORMAT_CUSTOM</constant> si vous souhaitez utiliser un format de papier personnalisé, grâce aux constantes <constant>PRINTER_PAPER_WIDTH</constant> et <constant>PRINTER_PAPER_LENGTH</constant>. <parameter>value</parameter> peut alors être l'une des constantes suivantes : </simpara> <itemizedlist> <listitem> <simpara> <constant> PRINTER_FORMAT_CUSTOM</constant> : vous laisse spécifier le format de papier. </simpara> </listitem> <listitem> <simpara> <constant> PRINTER_FORMAT_LETTER</constant> : spécifie le format standard "letter" (8 1/2 par 11 pouces (2.54cm)). </simpara> </listitem> <listitem> <simpara> <constant> PRINTER_FORMAT_LETTER</constant> : spécifie le format standard "legal" (8 1/2 par 14 pouces (2.54cm)). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_A3</constant> : spécifie le format standard "A3" (297 par 420 millimètres). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_A4</constant> : spécifie le format standard "A4" (210 par 297 millimètres). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_A5</constant> : spécifie le format standard "A5" (148 par 210 millimètres). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_B4</constant> : spécifie le format standard "B4" (250 par 354 millimètres). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_B5</constant> : spécifie le format standard "B5" (182 par 257 millimètres). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_FOLIO</constant> : spécifie le format standard "FOLIO" (8 1/2 par 13 pouces (2.54cm)). </simpara> </listitem> </itemizedlist> </listitem> <listitem> <simpara> <constant>PRINTER_PAPER_LENGTH</constant> : si <constant>PRINTER_PAPER_FORMAT</constant> vaut <constant>PRINTER_FORMAT_CUSTOM</constant>, <constant>PRINTER_PAPER_LENGTH</constant> spécifie une longueur personnalisée de papier, en millimètres. <parameter>value</parameter> doit être un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PAPER_WIDTH</constant> : si <constant>PRINTER_PAPER_FORMAT</constant> vaut <constant>PRINTER_FORMAT_CUSTOM</constant>, <constant>PRINTER_PAPER_WIDTH</constant> spécifie une largeur personnalisée de papier, en millimètres. <parameter>value</parameter> doit être un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_SCALE</constant> : spécifie le facteur de mise à l'échelle du document. La taille physique de la page imprimée est alors mise à l'échelle avec un facteur égal à <parameter>value</parameter>/100. Par exemple, si vous donnez un facteur d'échelle de 50, l'impression sera de la moitié de la taille du document original. <parameter>value</parameter> doit être un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BACKGROUND_COLOR</constant> : spécifie la couleur de fond pour le contexte actuel. <parameter>value</parameter> doit être une &string; contenant une couleur au format RGB hexadécimal : par exemple, "005533". </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TEXT_COLOR</constant> : spécifie la couleur du texte pour ce contexte d'imprimante. <parameter>value</parameter> doit être une &string; contenant une couleur au format RGB hexadécimal : par exemple, "005533". </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TEXT_ALIGN</constant> : spécifie l'alignement du etxte pour le contexte d'imprimante. <parameter>value</parameter> peut être une combinaison, avec l'opérateur OR, des constantes suivantes : </simpara> <itemizedlist> <listitem> <simpara> <constant>PRINTER_TA_BASELINE</constant> : le texte sera alignée sur la ligne de base. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TA_BOTTOM</constant> : le texte sera alignée sur la ligne de fond. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TA_TOP</constant> : le texte sera alignée sur la ligne de haut. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TA_CENTER</constant> : le texte sera alignée au centre. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TA_LEFT</constant> : le texte sera alignée à gauche. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TA_RIGHT</constant> : le texte sera alignée à droite. </simpara> </listitem> </itemizedlist> </listitem> </itemizedlist> </para> <example> <title>Exemple avec <function>printer_set_option</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_set_option($handle, PRINTER_SCALE, 75); printer_set_option($handle, PRINTER_TEXT_ALIGN, PRINTER_TA_LEFT); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-start-doc.xml +++ phpdoc-fr/reference/printer/functions/printer-start-doc.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-start-doc"> <refnamediv> <refname>printer_start_doc</refname> <refpurpose>Commence un nouveau document</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_start_doc</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>document</parameter></methodparam> </methodsynopsis> <para> <function>printer_start_doc</function> crée un nouveau document dans la file d'attente de l'imprimante <parameter>handle</parameter>. Un document peut contenir plusieurs pages, et il est programmé pour s'imprimer. <parameter>handle</parameter> doit être une ressource d'imprimante valide. Le paramètre optionnel <parameter>document</parameter> sert à donner un nom au document. </para> <example> <title>Exemple avec <function>printer_start_doc</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_start_doc($handle, "Mon Document"); printer_start_page($handle); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-start-page.xml +++ phpdoc-fr/reference/printer/functions/printer-start-page.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-start-page"> <refnamediv> <refname>printer_start_page</refname> <refpurpose>Commence une nouvelle page</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_start_page</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> </methodsynopsis> <para> <function>printer_start_page</function> crée une nouvelle page pour le document actif. Pour un exemple, voyez la fonction <function>printer_start_doc</function>. <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/printer/functions/printer-write.xml +++ phpdoc-fr/reference/printer/functions/printer-write.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 --> <refentry id="function.printer-write"> <refnamediv> <refname>printer_write</refname> <refpurpose>Ecrit des données sur l'imprimante</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>printer_write</methodname> <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>string</type><parameter>content</parameter></methodparam> </methodsynopsis> <para> <function>printer_write</function> écrit le contenu de la variable <parameter>content</parameter> directement sur l'imprimante <parameter>handle</parameter>. &return.success; </para> <para> <parameter>handle</parameter> doit être une ressource d'imprimante valide. </para> <example><title>Exemple avec <function>printer_write</function></title> <programlisting role="php"> <![CDATA[ <?php $handle = printer_open(); printer_write($handle, "Text to print"); printer_close($handle); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->