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: 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 &eacute;t&eacute; ajout&eacute;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 &ecirc;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 &agrave; 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&eacute;sent&eacute;e par la ressource <parameter>handle</parameter>. <function>printer_close</function> ferme aussi le contexte d'imprimante actif. </para> <para> <parameter>handle</parameter> doit &ecirc;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&eacute;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&eacute;e une nouvelle brosse et retourne une ressource de borsse. Une brosse est utilis&eacute;e pour remplir des surfaces. Pour un exemple, voyez la fonction <function>printer_select_brush</function>. <parameter>color</parameter> doit &ecirc;tre une couleur au format RGB h&eacute;xad&eacute;cimal, c'est &agrave; 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&eacute;e une brosse avec une couleur pleine. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_DIAGONAL</constant> : cr&eacute;e une brosse avec une direction diagonale ascendante, de droite &agrave; gauche ( / ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_CROSS</constant> : cr&eacute;e une brosse avec une forme de croix ( + ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_DIAGCROSS</constant> : cr&eacute;e une brosse avec une forme de croix diagonale ( x ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_FDIAGONAL</constant> : cr&eacute;e une brosse avec une direction diagonale ascendante, de gauche &agrave; droite ( \ ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_HORIZONTAL</constant> : cr&eacute;e une brosse avec une direction horizontale ( - ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_VERTICAL</constant> : cr&eacute;e une brosse avec une direction horizontale ( | ). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BRUSH_CUSTOM</constant> : cr&eacute;e une brosse &agrave; partir d'un fichier BMP. Le second param&egrave;tre est alors utilis&eacute; pour sp&eacute;cifier le chemin jusqu'au fichier BMP, au lieu d'&ecirc;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&eacute;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&eacute;e un nouveau contexte d'imprimante pour l'imprimante <parameter>handle</parameter>. Un contexte d'imprimante est utilis&eacute; pour param&eacute;trer les objets graphiques d'un document. <parameter>handle</parameter> doit &ecirc;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&eacute;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&eacute;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&eacute;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&egrave;tre <parameter>font_weight</parameter> sp&eacute;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&egrave;s l&eacute;ger (200). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FW_LIGHT</constant> : fixe un poids de police l&eacute;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&egrave;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&eacute;e, et &false; sinon. </para> <para> <parameter>strikeout</parameter> vaut be &true; pour indiquer que la police est barr&eacute;e, et &false; sinon. </para> <para> <parameter>orientation</parameter> sp&eacute;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&eacute;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&eacute;e un nouveau stylo et retourne une ressource. Un stylo est utilis&eacute; pour dessiner des lignes et des courbes. Pour un exemple, voyez la fonction <function>printer_select_pen</function>. <parameter>color</parameter> doit &ecirc;tre une couleur au format RGB h&eacute;xad&eacute;cimal, "000000" pour le noir. <parameter>width</parameter> sp&eacute;cifie la largeur du stylo. <parameter>style</parameter> doit &ecirc;tre l'une des constantes suivantes : <itemizedlist> <listitem> <simpara> <constant>PRINTER_PEN_SOLID</constant>: cr&eacute;e un stylo plein. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PEN_DASH</constant>: cr&eacute;e un stylo pointill&eacute; avec des tirets. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PEN_DOT</constant>: cr&eacute;e un stylo pointill&eacute; avec des points. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PEN_DASHDOT</constant>: cr&eacute;e un stylo pointill&eacute; avec des tirets et des points. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PEN_DASHDOTDOT</constant>: cr&eacute;e un stylo pointill&eacute; avec des tirets et des doubles points. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PEN_INVISIBLE</constant>: cr&eacute;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&eacute;sent&eacute;e par sa ressource <parameter>handle</parameter>. Pour un exemple, voyez la fonction <function>printer_select_brush</function>. &return.success; <parameter>handle</parameter> doit &ecirc;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&eacute;sent&eacute; par sa ressource <parameter>handle</parameter>. Pour un exemple, voyez la fonction <function>printer_create_dc</function>. &return.success; <parameter>handle</parameter> doit &ecirc;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&eacute;sent&eacute;e par sa ressource <parameter>handle</parameter>. Pour un exemple, voyez la fonction <function>printer_select_font</function>. &return.success; <parameter>handle</parameter> doit &ecirc;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&eacute;sent&eacute; par sa ressource <parameter>handle</parameter>. Pour un exemple, voyez la fonction <function>printer_select_pen</function>. &return.success; <parameter>handle</parameter> doit &ecirc;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>, &agrave; la position <parameter>x</parameter>, <parameter>y</parameter>. <parameter>handle</parameter> doit &ecirc;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 &ecirc;tre une ressource d'imprimante valide. </para> <para> <parameter>rec_x</parameter> est l'absisse sup&eacute;rieure gauche du rectangle d'encadrement. </para> <para> <parameter>rec_y</parameter> est l'ordonn&eacute;e sup&eacute;rieure gauche du rectangle d'encadrement. </para> <para> <parameter>rec_x1</parameter> est l'absisse inf&eacute;rieure droite du rectangle d'encadrement. </para> <para> <parameter>rec_y1</parameter> est l'ordonn&eacute;e inf&eacute;rieure droite du rectangle d'encadrement. </para> <para> <parameter>rad_x</parameter> est l'absisse du point de d&eacute;but de l'arc. </para> <para> <parameter>rad_y</parameter> est l'ordonn&eacute;e du point de d&eacute;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&eacute;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 &ecirc;tre une ressource d'imprimante valide. </para> <para> <parameter>ul_x</parameter> est l'absisse sup&eacute;rieure gauche de l'ellipse. </para> <para> <parameter>ul_y</parameter> est l'ordonn&eacute;e sup&eacute;rieure gauche de l'ellipse. </para> <para> <parameter>lr_x</parameter> est l'absisse inf&eacute;rieure droite de l'ellipse. </para> <para> <parameter>lr_y</parameter> est l'ordonn&eacute;e inf&eacute;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&eacute;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 &ecirc;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 &ecirc;tre une ressource d'imprimante valide. </para> <para> <parameter>rec_x</parameter> est l'absisse sup&eacute;rieure gauche du rectangle d'encadrement. </para> <para> <parameter>rec_y</parameter> est l'ordonn&eacute;e sup&eacute;rieure gauche du rectangle d'encadrement. </para> <para> <parameter>rec_x1</parameter> est l'absisse inf&eacute;rieure droite du rectangle d'encadrement. </para> <para> <parameter>rec_y1</parameter> est l'ordonn&eacute;e inf&eacute;rieure droite du rectangle d'encadrement. </para> <para> <parameter>rad_x</parameter> est l'absisse du point de d&eacute;but de l'arc. </para> <para> <parameter>rad_y</parameter> est l'ordonn&eacute;e du point de d&eacute;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&eacute;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 &ecirc;tre une ressource d'imprimante valide. </para> <para> <parameter>ul_x</parameter> est l'absisse du coin sup&eacute;rieur gauche du rectangle. </para> <para> <parameter>ul_y</parameter> est l'ordonn&eacute;e du coin sup&eacute;rieur gauche du rectangle. </para> <para> <parameter>lr_x</parameter> est l'absisse du coin inf&eacute;rieur droit du rectangle. </para> <para> <parameter>lr_y</parameter> est l'ordonn&eacute;e du coin inf&eacute;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 &ecirc;tre une ressource d'imprimante valide. </para> <para> <parameter>ul_x</parameter> est l'absisse du coin sup&eacute;rieur gauche du rectangle. </para> <para> <parameter>ul_y</parameter> est l'ordonn&eacute;e du coin sup&eacute;rieur gauche du rectangle. </para> <para> <parameter>lr_x</parameter> est l'absisse du coin inf&eacute;rieur droit du rectangle. </para> <para> <parameter>lr_y</parameter> est l'ordonn&eacute;e du coin inf&eacute;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> &agrave; la position <parameter>x</parameter>, <parameter>y</parameter>, en utilisant la police de caract&egrave;res courante. <parameter>printer_handle</parameter> doit &ecirc;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&ecirc;t &agrave; &ecirc;tre imprim&eacute;. Pour un exemple, voyez la fonction <function>printer_start_doc</function>. <parameter>handle</parameter> doit &ecirc;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 &ecirc;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 &ecirc;tre une ressource d'imprimante valide. Lisez la documentation de <function>printer_set_option</function> pour conna&icirc;tre les valeurs possibles du param&egrave;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&eacute;es &agrave; 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&eacute;s. <parameter>level</parameter> repr&eacute;sente le niveau d'information demand&eacute;. Il peut prendre les valeurs de 1,2,4 ou 5. <parameter>enumtype</parameter> doit &ecirc;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 &ecirc;tre un serveur, un domaine ou un fournisseur d'impression. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_SHARED</constant>: ce param&egrave;tre ne peut &ecirc;tre utilis&eacute; seul, il doit &ecirc;tre combin&eacute; avec d'autres param&egrave;tres, gr&acirc;ce &agrave; l'op&eacute;rateur OR. <constant>PRINTER_ENUM_SHARED</constant> d&eacute;tecte les imprimantes localement partag&eacute;es. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_DEFAULT</constant>: (Win9.x uniquement) liste l'imprimante par d&eacute;faut. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_CONNECTIONS</constant>: (WinNT/2000 uniquement) liste les imprimantes avec lesquelles l'utilisateur a &eacute;tablit une connexion. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ENUM_NETWORK</constant>: (WinNT/2000 uniquement) liste les imprimantes r&eacute;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&eacute;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&eacute;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 &ecirc;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 &agrave; 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 &agrave; l'imprimante <parameter>devicename</parameter>, puir retourne une ressource en cas de succ&egrave;s, et &false; sinon. </para> <para> Si aucun param&egrave;tre n'est fourni, <function>printer_open</function> tente d'ouvrir une connexion avec l'imprimante par d&eacute;faut. Si elle n'est pas d&eacute;tect&eacute;e dans le fichier &php.ini; avec la directive <literal>printer.default_printer</literal>, &php; essaie de la d&eacute;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&eacute;lectionne la brosse <parameter>brush_handle</parameter> comme brosse active pour la connexion &agrave; l'imprimante <parameter>printer_handle</parameter>. Une brosse est utilis&eacute;e pour remplir des surfaces. Si vous dessinez un rectangle, une brosse sera n&eacute;cessaire pour dessiner le contenu, et un stylo pour dessiner les bords. Si vous n'avez pas s&eacute;lectionn&eacute; de brosse avant de dessiner des formes, elles ne seront pas remplies. <parameter>printer_handle</parameter> doit &ecirc;tre une ressource d'imprimante valide. <parameter>brush_handle</parameter> doit &ecirc;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&egrave;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&eacute;lionne la police <parameter>font_handle</parameter> pour &eacute;crire le texte sur la connexion &agrave; l'imprimante <parameter>printer_handle</parameter>. <parameter>printer_handle</parameter> doit &ecirc;tre une ressource d'imprimante valide. <parameter>font_handle</parameter> doit &ecirc;tre une ressource de police de caract&egrave;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&eacute;lectionne le stylo <parameter>pen_handle</parameter> comme brosse active pour la connexion &agrave; l'imprimante <parameter>printer_handle</parameter>. Un stylo est utilis&eacute; pour dessiner les bords des surfaces. Si vous dessinez un rectangle, une brosse sera n&eacute;cessaire pour dessiner le contenu, et un stylo pour dessiner les bords. Si vous n'avez pas s&eacute;lectionn&eacute; de brosse avant de dessiner des formes, elles ne seront pas remplies. <parameter>printer_handle</parameter> doit &ecirc;tre une ressource d'imprimante valide. <parameter>brush_handle</parameter> doit &ecirc;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 &agrave; 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 &agrave; l'imprimante <parameter>handle</parameter>. <parameter>handle</parameter> doit &ecirc;tre une ressource d'imprimante valide. <parameter>option</parameter> peut &ecirc;tre l'une des constantes suivantes : <itemizedlist> <listitem> <simpara> <constant>PRINTER_COPIES</constant> : indique le nombre de copie &agrave; imprimer. <parameter>value</parameter> doit &ecirc;tre un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_MODE</constant> : sp&eacute;cifie le type de data ("text", "raw' ou "emf"), <parameter>value</parameter>doit &ecirc;tre une &string;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TITLE</constant> : sp&eacute;cifie le nom du document, <parameter>value</parameter> doit &ecirc;tre une &string;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_ORIENTATION</constant> : sp&eacute;cifie l'orientation du papier, <parameter>value</parameter> peut &ecirc;tre <constant>PRINTER_ORIENTATION_PORTRAIT</constant> ou <constant>PRINTER_ORIENTATION_LANDSCAPE</constant> </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_RESOLUTION_Y</constant> : sp&eacute;cifie la r&eacute;solution en ordonn&eacute;es, en DPI, <parameter>value</parameter> doit &ecirc;tre un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_RESOLUTION_X</constant> : sp&eacute;cifie la r&eacute;solution en absisse, en DPI, <parameter>value</parameter> doit &ecirc;tre un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_PAPER_FORMAT</constant> : sp&eacute;cifie un format de papier pr&eacute;d&eacute;fini : donnez &agrave; <parameter>value</parameter> la valeur de <constant>PRINTER_FORMAT_CUSTOM</constant> si vous souhaitez utiliser un format de papier personnalis&eacute;, gr&acirc;ce aux constantes <constant>PRINTER_PAPER_WIDTH</constant> et <constant>PRINTER_PAPER_LENGTH</constant>. <parameter>value</parameter> peut alors &ecirc;tre l'une des constantes suivantes : </simpara> <itemizedlist> <listitem> <simpara> <constant> PRINTER_FORMAT_CUSTOM</constant> : vous laisse sp&eacute;cifier le format de papier. </simpara> </listitem> <listitem> <simpara> <constant> PRINTER_FORMAT_LETTER</constant> : sp&eacute;cifie le format standard "letter" (8 1/2 par 11 pouces (2.54cm)). </simpara> </listitem> <listitem> <simpara> <constant> PRINTER_FORMAT_LETTER</constant> : sp&eacute;cifie le format standard "legal" (8 1/2 par 14 pouces (2.54cm)). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_A3</constant> : sp&eacute;cifie le format standard "A3" (297 par 420 millim&egrave;tres). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_A4</constant> : sp&eacute;cifie le format standard "A4" (210 par 297 millim&egrave;tres). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_A5</constant> : sp&eacute;cifie le format standard "A5" (148 par 210 millim&egrave;tres). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_B4</constant> : sp&eacute;cifie le format standard "B4" (250 par 354 millim&egrave;tres). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_B5</constant> : sp&eacute;cifie le format standard "B5" (182 par 257 millim&egrave;tres). </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_FORMAT_FOLIO</constant> : sp&eacute;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&eacute;cifie une longueur personnalis&eacute;e de papier, en millim&egrave;tres. <parameter>value</parameter> doit &ecirc;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&eacute;cifie une largeur personnalis&eacute;e de papier, en millim&egrave;tres. <parameter>value</parameter> doit &ecirc;tre un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_SCALE</constant> : sp&eacute;cifie le facteur de mise &agrave; l'&eacute;chelle du document. La taille physique de la page imprim&eacute;e est alors mise &agrave; l'&eacute;chelle avec un facteur &eacute;gal &agrave; <parameter>value</parameter>/100. Par exemple, si vous donnez un facteur d'&eacute;chelle de 50, l'impression sera de la moiti&eacute; de la taille du document original. <parameter>value</parameter> doit &ecirc;tre un &integer;. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_BACKGROUND_COLOR</constant> : sp&eacute;cifie la couleur de fond pour le contexte actuel. <parameter>value</parameter> doit &ecirc;tre une &string; contenant une couleur au format RGB hexad&eacute;cimal : par exemple, "005533". </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TEXT_COLOR</constant> : sp&eacute;cifie la couleur du texte pour ce contexte d'imprimante. <parameter>value</parameter> doit &ecirc;tre une &string; contenant une couleur au format RGB hexad&eacute;cimal : par exemple, "005533". </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TEXT_ALIGN</constant> : sp&eacute;cifie l'alignement du etxte pour le contexte d'imprimante. <parameter>value</parameter> peut &ecirc;tre une combinaison, avec l'op&eacute;rateur OR, des constantes suivantes : </simpara> <itemizedlist> <listitem> <simpara> <constant>PRINTER_TA_BASELINE</constant> : le texte sera align&eacute;e sur la ligne de base. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TA_BOTTOM</constant> : le texte sera align&eacute;e sur la ligne de fond. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TA_TOP</constant> : le texte sera align&eacute;e sur la ligne de haut. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TA_CENTER</constant> : le texte sera align&eacute;e au centre. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TA_LEFT</constant> : le texte sera align&eacute;e &agrave; gauche. </simpara> </listitem> <listitem> <simpara> <constant>PRINTER_TA_RIGHT</constant> : le texte sera align&eacute;e &agrave; 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&eacute;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&eacute; pour s'imprimer. <parameter>handle</parameter> doit &ecirc;tre une ressource d'imprimante valide. Le param&egrave;tre optionnel <parameter>document</parameter> sert &agrave; 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&eacute;e une nouvelle page pour le document actif. Pour un exemple, voyez la fonction <function>printer_start_doc</function>. <parameter>handle</parameter> doit &ecirc;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&eacute;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> &eacute;crit le contenu de la variable <parameter>content</parameter> directement sur l'imprimante <parameter>handle</parameter>. &return.success; </para> <para> <parameter>handle</parameter> doit &ecirc;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 -->
« previous php.doc.fr (#338) next »