Sfoglia il codice sorgente

ZF-1671: Applying patch from Marc Hodgkins

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23406 44c647ce-9c0f-0410-b52a-842ac1e357ba
bittarman 15 anni fa
parent
commit
fc14ac73d6
1 ha cambiato i file con 14 aggiunte e 2 eliminazioni
  1. 14 2
      documentation/manual/en/module_specs/Zend_Pdf-Drawing.xml

+ 14 - 2
documentation/manual/en/module_specs/Zend_Pdf-Drawing.xml

@@ -222,7 +222,7 @@ public function drawEllipse($x1,
         <para>
         <para>
             Text drawing operations also exist in the context of a <acronym>PDF</acronym> page. You
             Text drawing operations also exist in the context of a <acronym>PDF</acronym> page. You
             can draw a single line of text at any position on the page by supplying the x and y
             can draw a single line of text at any position on the page by supplying the x and y
-            coordinates of the baseline. Current font and current font size are used for text
+            coordinates of the baseline. Current font, font size and page fill color are used for text
             drawing operations (see detailed description below).
             drawing operations (see detailed description below).
         </para>
         </para>
 
 
@@ -251,6 +251,18 @@ $pdfPage->drawText('Hello world!', 72, 720);
 ]]></programlisting>
 ]]></programlisting>
         </example>
         </example>
 
 
+        <example id="zend.pdf.drawing.text-drawing.example-2">
+            <title>Set font color</title>
+
+            <programlisting language="php"><![CDATA[
+...
+$pdfPage->setFillColor(Zend_Pdf_Color_Html::color('#990000'))
+        ->drawText('Hello world (in red)!', 72, 720);
+....
+]]></programlisting>
+        </example>
+
+
         <para>
         <para>
             By default, text strings are interpreted using the character encoding method of the
             By default, text strings are interpreted using the character encoding method of the
             current locale. if you have a string that uses a different encoding method (such as a
             current locale. if you have a string that uses a different encoding method (such as a
@@ -262,7 +274,7 @@ $pdfPage->drawText('Hello world!', 72, 720);
             function:
             function:
         </para>
         </para>
 
 
-        <example id="zend.pdf.drawing.text-drawing.example-2">
+        <example id="zend.pdf.drawing.text-drawing.example-3">
             <title>Draw a UTF-8-encoded string on the page</title>
             <title>Draw a UTF-8-encoded string on the page</title>
 
 
             <programlisting language="php"><![CDATA[
             <programlisting language="php"><![CDATA[