Sfoglia il codice sorgente

[DOCUMENTATION] English:
- fix compilation errors

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19403 44c647ce-9c0f-0410-b52a-842ac1e357ba

mikaelkael 16 anni fa
parent
commit
f3fd0ea04f
1 ha cambiato i file con 136 aggiunte e 136 eliminazioni
  1. 136 136
      documentation/manual/en/module_specs/Zend_Service_LiveDocx.xml

+ 136 - 136
documentation/manual/en/module_specs/Zend_Service_LiveDocx.xml

@@ -10,15 +10,15 @@
             LiveDocx is a <acronym>SOAP</acronym> service that allows developers to generate word
             LiveDocx is a <acronym>SOAP</acronym> service that allows developers to generate word
             processing documents by combining structured data from PHP with a template, created in a
             processing documents by combining structured data from PHP with a template, created in a
             word processor. The resulting document can be saved as a <acronym>PDF</acronym>,
             word processor. The resulting document can be saved as a <acronym>PDF</acronym>,
-            <acronym>DOCX</acronym>, <acronym>DOC</acronym>, <acronym>HTML</acronym> or
+            <acronym>DOCX</acronym>, <acronym>DOC</acronym>, <acronym>HTML</acronym> or 
             <acronym>RTF</acronym> file. LiveDocx implements <ulink
             <acronym>RTF</acronym> file. LiveDocx implements <ulink
                     url="http://en.wikipedia.org/wiki/Mail_merge">mail-merge</ulink> in PHP.
                     url="http://en.wikipedia.org/wiki/Mail_merge">mail-merge</ulink> in PHP.
         </para>
         </para>
-
+       
         <para>
         <para>
             The family of <classname>Zend_Service_LiveDocx</classname> components provides a clean
             The family of <classname>Zend_Service_LiveDocx</classname> components provides a clean
             and simple interface to the <ulink url="http://www.livedocx.com">LiveDocx API</ulink>
             and simple interface to the <ulink url="http://www.livedocx.com">LiveDocx API</ulink>
-            and additionally offers functionality to improve network performance.
+            and additionally offers functionality to improve network performance.            
         </para>
         </para>
 
 
         <para>The <ulink url="http://www.phplivedocx.org">phpLiveDocx project site</ulink> contains
         <para>The <ulink url="http://www.phplivedocx.org">phpLiveDocx project site</ulink> contains
@@ -30,12 +30,12 @@
         <para>
         <para>
             The backend <acronym>SOAP</acronym> API is documented <ulink
             The backend <acronym>SOAP</acronym> API is documented <ulink
             url="http://www.livedocx.com/pub/documentation/api.aspx">on the LiveDocx
             url="http://www.livedocx.com/pub/documentation/api.aspx">on the LiveDocx
-            documentation pages</ulink>.
+            documentation pages</ulink>. 
         </para>
         </para>
-
+        
         <sect3 id="zend.service.livedocx.account">
         <sect3 id="zend.service.livedocx.account">
             <title>Sign Up for an Account</title>
             <title>Sign Up for an Account</title>
-
+    
             <para>
             <para>
                 Before you can start using LiveDocx, you must first <ulink
                 Before you can start using LiveDocx, you must first <ulink
                     url="https://www.livedocx.com/user/account_registration.aspx">sign up</ulink>
                     url="https://www.livedocx.com/user/account_registration.aspx">sign up</ulink>
@@ -45,17 +45,17 @@
                 the e-mail address you supply, so please type carefully.
                 the e-mail address you supply, so please type carefully.
             </para>
             </para>
         </sect3>
         </sect3>
-
+    
         <sect3 id="zend.service.livedocx.templates-documents">
         <sect3 id="zend.service.livedocx.templates-documents">
             <title>Templates and Documents</title>
             <title>Templates and Documents</title>
-
+    
             <para>
             <para>
                 LiveDocx differentiates between the following terms: 1)
                 LiveDocx differentiates between the following terms: 1)
                 <emphasis>template</emphasis> and 2) <emphasis>document</emphasis>. In order to
                 <emphasis>template</emphasis> and 2) <emphasis>document</emphasis>. In order to
                 fully understand the documentation and indeed the actual API, it is important that
                 fully understand the documentation and indeed the actual API, it is important that
                 any programmer deploying LiveDocx understands the difference.
                 any programmer deploying LiveDocx understands the difference.
             </para>
             </para>
-
+    
             <para>
             <para>
                 The term <emphasis>template</emphasis> is used to refer to the input file, created
                 The term <emphasis>template</emphasis> is used to refer to the input file, created
                 in a word processor, containing formatting and text fields. You can download an
                 in a word processor, containing formatting and text fields. You can download an
@@ -69,21 +69,21 @@
                     document</ulink>, stored as a <acronym>PDF</acronym> file.
                     document</ulink>, stored as a <acronym>PDF</acronym> file.
             </para>
             </para>
         </sect3>
         </sect3>
-
+    
         <sect3 id="zend.service.livedocx.formats">
         <sect3 id="zend.service.livedocx.formats">
             <title>Supported File Formats</title>
             <title>Supported File Formats</title>
-
+            
             <para>
             <para>
                 LiveDocx supports the following file formats:
                 LiveDocx supports the following file formats:
             </para>
             </para>
-
+            
             <sect4 id="zend.service.livedocx.formats.template">
             <sect4 id="zend.service.livedocx.formats.template">
                 <title>Template File Formats (input)</title>
                 <title>Template File Formats (input)</title>
-
+                
                 <para>
                 <para>
                     Templates can be saved in any of the following file formats:
                     Templates can be saved in any of the following file formats:
                 </para>
                 </para>
-
+        
                 <itemizedlist>
                 <itemizedlist>
                     <listitem>
                     <listitem>
                         <para>
                         <para>
@@ -91,21 +91,21 @@
                             Office Open <acronym>XML</acronym> format
                             Office Open <acronym>XML</acronym> format
                         </para>
                         </para>
                     </listitem>
                     </listitem>
-
+        
                     <listitem>
                     <listitem>
                         <para>
                         <para>
                             <ulink url="http://en.wikipedia.org/wiki/DOC_(computing)">DOC</ulink> -
                             <ulink url="http://en.wikipedia.org/wiki/DOC_(computing)">DOC</ulink> -
                             Microsoft Word <acronym>DOC</acronym> format
                             Microsoft Word <acronym>DOC</acronym> format
                         </para>
                         </para>
                     </listitem>
                     </listitem>
-
+        
                     <listitem>
                     <listitem>
                         <para>
                         <para>
                             <ulink url="http://en.wikipedia.org/wiki/Rich_Text_Format">RTF</ulink> -
                             <ulink url="http://en.wikipedia.org/wiki/Rich_Text_Format">RTF</ulink> -
                             Rich text file format
                             Rich text file format
                         </para>
                         </para>
                     </listitem>
                     </listitem>
-
+        
                     <listitem>
                     <listitem>
                         <para>
                         <para>
                             <ulink url="http://www.textcontrol.com/">TXD</ulink> - TX Text Control
                             <ulink url="http://www.textcontrol.com/">TXD</ulink> - TX Text Control
@@ -114,14 +114,14 @@
                     </listitem>
                     </listitem>
                 </itemizedlist>
                 </itemizedlist>
             </sect4>
             </sect4>
-
+            
             <sect4 id="zend.service.livedocx.formats.document">
             <sect4 id="zend.service.livedocx.formats.document">
                 <title>Document File Formats (output):</title>
                 <title>Document File Formats (output):</title>
-
+                
                 <para>
                 <para>
                     The resulting document can be saved in any of the following file formats:
                     The resulting document can be saved in any of the following file formats:
                 </para>
                 </para>
-
+        
                 <itemizedlist>
                 <itemizedlist>
                     <listitem>
                     <listitem>
                         <para>
                         <para>
@@ -129,28 +129,28 @@
                             Office Open <acronym>XML</acronym> format
                             Office Open <acronym>XML</acronym> format
                         </para>
                         </para>
                     </listitem>
                     </listitem>
-
+        
                     <listitem>
                     <listitem>
                         <para>
                         <para>
                             <ulink url="http://en.wikipedia.org/wiki/DOC_(computing)">DOC</ulink> -
                             <ulink url="http://en.wikipedia.org/wiki/DOC_(computing)">DOC</ulink> -
                             Microsoft Word <acronym>DOC</acronym> format
                             Microsoft Word <acronym>DOC</acronym> format
                         </para>
                         </para>
                     </listitem>
                     </listitem>
-
+        
                     <listitem>
                     <listitem>
                         <para>
                         <para>
                             <ulink url="http://en.wikipedia.org/wiki/Xhtml">HTML</ulink> -
                             <ulink url="http://en.wikipedia.org/wiki/Xhtml">HTML</ulink> -
                             <acronym>XHTML</acronym> 1.0 transitional format
                             <acronym>XHTML</acronym> 1.0 transitional format
                         </para>
                         </para>
                     </listitem>
                     </listitem>
-
+        
                     <listitem>
                     <listitem>
                         <para>
                         <para>
                             <ulink url="http://en.wikipedia.org/wiki/Rich_Text_Format">RTF</ulink> -
                             <ulink url="http://en.wikipedia.org/wiki/Rich_Text_Format">RTF</ulink> -
                             Rich text file format
                             Rich text file format
                         </para>
                         </para>
                     </listitem>
                     </listitem>
-
+        
                     <listitem>
                     <listitem>
                         <para>
                         <para>
                             <ulink
                             <ulink
@@ -158,14 +158,14 @@
                             - Acrobat Portable Document Format
                             - Acrobat Portable Document Format
                         </para>
                         </para>
                     </listitem>
                     </listitem>
-
+        
                     <listitem>
                     <listitem>
                         <para>
                         <para>
                             <ulink url="http://www.textcontrol.com/">TXD</ulink> - TX Text Control
                             <ulink url="http://www.textcontrol.com/">TXD</ulink> - TX Text Control
                             format
                             format
                         </para>
                         </para>
                     </listitem>
                     </listitem>
-
+        
                     <listitem>
                     <listitem>
                         <para>
                         <para>
                             <ulink url="http://en.wikipedia.org/wiki/Text_file">TXT</ulink> -
                             <ulink url="http://en.wikipedia.org/wiki/Text_file">TXT</ulink> -
@@ -174,15 +174,15 @@
                     </listitem>
                     </listitem>
                 </itemizedlist>
                 </itemizedlist>
             </sect4>
             </sect4>
-
+            
             <sect4 id="zend.service.livedocx.formats.image">
             <sect4 id="zend.service.livedocx.formats.image">
                 <title>Image File Formats (output):</title>
                 <title>Image File Formats (output):</title>
-
+                
                 <para>
                 <para>
                     The resulting document can be saved in any of the following graphical file
                     The resulting document can be saved in any of the following graphical file
                     formats:
                     formats:
-                </para>
-
+                </para>                
+        
                 <itemizedlist>
                 <itemizedlist>
                     <listitem>
                     <listitem>
                         <para>
                         <para>
@@ -190,21 +190,21 @@
                             Bitmap image format
                             Bitmap image format
                         </para>
                         </para>
                     </listitem>
                     </listitem>
-
+        
                     <listitem>
                     <listitem>
                         <para>
                         <para>
                             <ulink url="http://en.wikipedia.org/wiki/GIF">GIF</ulink> - Graphics
                             <ulink url="http://en.wikipedia.org/wiki/GIF">GIF</ulink> - Graphics
                             Interchange Format
                             Interchange Format
                         </para>
                         </para>
                     </listitem>
                     </listitem>
-
+        
                     <listitem>
                     <listitem>
                         <para>
                         <para>
                             <ulink url="http://en.wikipedia.org/wiki/Jpg">JPG</ulink> - Joint
                             <ulink url="http://en.wikipedia.org/wiki/Jpg">JPG</ulink> - Joint
                             Photographic Experts Group format
                             Photographic Experts Group format
                         </para>
                         </para>
                     </listitem>
                     </listitem>
-
+        
                     <listitem>
                     <listitem>
                         <para>
                         <para>
                             <ulink
                             <ulink
@@ -212,7 +212,7 @@
                             - Portable Network Graphics format
                             - Portable Network Graphics format
                         </para>
                         </para>
                     </listitem>
                     </listitem>
-
+        
                     <listitem>
                     <listitem>
                         <para>
                         <para>
                             <ulink
                             <ulink
@@ -220,7 +220,7 @@
                             - Tagged Image File Format
                             - Tagged Image File Format
                         </para>
                         </para>
                     </listitem>
                     </listitem>
-
+        
                     <listitem>
                     <listitem>
                         <para>
                         <para>
                             <ulink url="http://en.wikipedia.org/wiki/Windows_Metafile">WMF</ulink> -
                             <ulink url="http://en.wikipedia.org/wiki/Windows_Metafile">WMF</ulink> -
@@ -234,7 +234,7 @@
 
 
     <sect2 id="zend.service.livedocx.mailmerge">
     <sect2 id="zend.service.livedocx.mailmerge">
         <title>Zend_Service_LiveDocx_MailMerge</title>
         <title>Zend_Service_LiveDocx_MailMerge</title>
-
+        
         <para>
         <para>
              <classname>Zend_Service_LiveDocx_MailMerge</classname> is the mail-merge object in the
              <classname>Zend_Service_LiveDocx_MailMerge</classname> is the mail-merge object in the
              <classname>Zend_Service_LiveDocx</classname> family.
              <classname>Zend_Service_LiveDocx</classname> family.
@@ -254,10 +254,10 @@
             <para>
             <para>
                 Or expressed by the following diagram:
                 Or expressed by the following diagram:
             </para>
             </para>
-
+            
             <mediaobject>
             <mediaobject>
                 <imageobject>
                 <imageobject>
-                    <imagedata fileref="figures/zend.service.livedocx.mailmerge.generation-diabasic.png" format="png"></imagedata>
+                    <imagedata fileref="figures/zend.service.livedocx.mailmerge.generation-diabasic.png" format="PNG"></imagedata>
                 </imageobject>
                 </imageobject>
 
 
                 <caption>
                 <caption>
@@ -268,7 +268,7 @@
                     </para>
                     </para>
                 </caption>
                 </caption>
             </mediaobject>
             </mediaobject>
-
+            
             <para>
             <para>
                 A template, created in a word processing application, such as Microsoft Word, is
                 A template, created in a word processing application, such as Microsoft Word, is
                 loaded into LiveDocx. Data is then inserted into the template and the resulting
                 loaded into LiveDocx. Data is then inserted into the template and the resulting
@@ -283,11 +283,11 @@
                 Start off by launching Microsoft Word and creating a new document. Next, open up the
                 Start off by launching Microsoft Word and creating a new document. Next, open up the
                 <emphasis>Field</emphasis> dialog box. This looks as follows:
                 <emphasis>Field</emphasis> dialog box. This looks as follows:
             </para>
             </para>
-
+            
             <mediaobject>
             <mediaobject>
                 <imageobject>
                 <imageobject>
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.templates-msworddialog.png"
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.templates-msworddialog.png"
-                        format="png"></imagedata>
+                        format="PNG"></imagedata>
                 </imageobject>
                 </imageobject>
 
 
                 <caption>
                 <caption>
@@ -298,17 +298,17 @@
                     </para>
                     </para>
                 </caption>
                 </caption>
             </mediaobject>
             </mediaobject>
-
+            
             <para>
             <para>
                 Using this dialog, you can insert the required merge fields into your document.
                 Using this dialog, you can insert the required merge fields into your document.
                 Below is a screenshot of a license agreement in Microsoft Word 2007. The merge
                 Below is a screenshot of a license agreement in Microsoft Word 2007. The merge
                 fields are marked as <code>{ MERGEFIELD FieldName }</code>:
                 fields are marked as <code>{ MERGEFIELD FieldName }</code>:
             </para>
             </para>
-
+            
             <mediaobject>
             <mediaobject>
                 <imageobject>
                 <imageobject>
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.templates-mswordtemplatefull.png"
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.templates-mswordtemplatefull.png"
-                        format="png"></imagedata>
+                        format="PNG"></imagedata>
                 </imageobject>
                 </imageobject>
 
 
                 <caption>
                 <caption>
@@ -319,7 +319,7 @@
                     </para>
                     </para>
                 </caption>
                 </caption>
             </mediaobject>
             </mediaobject>
-
+            
             <para>
             <para>
                 Now, save the template as <emphasis>template.docx</emphasis>.
                 Now, save the template as <emphasis>template.docx</emphasis>.
             </para>
             </para>
@@ -328,11 +328,11 @@
                  In the next step, we are going to populate the merge fields with textual data from
                  In the next step, we are going to populate the merge fields with textual data from
                  PHP.
                  PHP.
             </para>
             </para>
-
+            
             <mediaobject>
             <mediaobject>
                 <imageobject>
                 <imageobject>
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.templates-mswordtemplatecropped.png"
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.templates-mswordtemplatecropped.png"
-                        format="png"></imagedata>
+                        format="PNG"></imagedata>
                 </imageobject>
                 </imageobject>
 
 
                 <caption>
                 <caption>
@@ -343,7 +343,7 @@
                     </para>
                     </para>
                 </caption>
                 </caption>
             </mediaobject>
             </mediaobject>
-
+            
             <para>
             <para>
                 To populate the merge fields in the above cropped screenshot of the <ulink
                 To populate the merge fields in the above cropped screenshot of the <ulink
                     url="http://www.phplivedocx.org/wp-content/uploads/2009/01/license-agreement-template.docx">template</ulink>
                     url="http://www.phplivedocx.org/wp-content/uploads/2009/01/license-agreement-template.docx">template</ulink>
@@ -355,17 +355,17 @@ $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 
 
 $phpLiveDocx->setUsername('myUsername')
 $phpLiveDocx->setUsername('myUsername')
             ->setPassword('myPassword');
             ->setPassword('myPassword');
-
+ 
 $phpLiveDocx->setLocalTemplate('template.docx');
 $phpLiveDocx->setLocalTemplate('template.docx');
-
+ 
 $phpLiveDocx->assign('software', 'Magic Graphical Compression Suite v1.9')
 $phpLiveDocx->assign('software', 'Magic Graphical Compression Suite v1.9')
             ->assign('licensee', 'Henry Döner-Meyer')
             ->assign('licensee', 'Henry Döner-Meyer')
             ->assign('company',  'Co-Operation');
             ->assign('company',  'Co-Operation');
-
+ 
 $phpLiveDocx->createDocument();
 $phpLiveDocx->createDocument();
-
+ 
 $document = $phpLiveDocx->retrieveDocument('pdf');
 $document = $phpLiveDocx->retrieveDocument('pdf');
-
+ 
 file_put_contents('document.pdf', $document);
 file_put_contents('document.pdf', $document);
 ]]></programlisting>
 ]]></programlisting>
 
 
@@ -375,11 +375,11 @@ file_put_contents('document.pdf', $document);
                 e-mail or simply displayed, as is illustrated below in <emphasis>Document Viewer
                 e-mail or simply displayed, as is illustrated below in <emphasis>Document Viewer
                     2.26.1</emphasis> on <emphasis>Ubuntu 9.04</emphasis>:
                     2.26.1</emphasis> on <emphasis>Ubuntu 9.04</emphasis>:
             </para>
             </para>
-
+            
             <mediaobject>
             <mediaobject>
                 <imageobject>
                 <imageobject>
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.templates-msworddocument.png"
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.templates-msworddocument.png"
-                        format="png"></imagedata>
+                        format="PNG"></imagedata>
                 </imageobject>
                 </imageobject>
 
 
                 <caption>
                 <caption>
@@ -393,7 +393,7 @@ file_put_contents('document.pdf', $document);
             </mediaobject>
             </mediaobject>
         </sect3>
         </sect3>
 
 
-        <example id="zend.service.livedocx.mailmerge.advanced">
+        <sect3 id="zend.service.livedocx.mailmerge.advanced">
             <title>Advanced Mail-Merge</title>
             <title>Advanced Mail-Merge</title>
 
 
             <para>
             <para>
@@ -426,7 +426,7 @@ file_put_contents('document.pdf', $document);
 
 
             <mediaobject>
             <mediaobject>
                 <imageobject>
                 <imageobject>
-                    <imagedata fileref="figures/zend.service.livedocx.mailmerge.advanced-mergefieldblockformat.png" format="png"></imagedata>
+                    <imagedata fileref="figures/zend.service.livedocx.mailmerge.advanced-mergefieldblockformat.png" format="PNG"></imagedata>
                 </imageobject>
                 </imageobject>
 
 
                 <caption>
                 <caption>
@@ -437,7 +437,7 @@ file_put_contents('document.pdf', $document);
                     </para>
                     </para>
                 </caption>
                 </caption>
             </mediaobject>
             </mediaobject>
-
+            
             <para>
             <para>
                 The format of a block is as follows:
                 The format of a block is as follows:
             </para>
             </para>
@@ -464,11 +464,11 @@ blockEnd_block1
                 The following screenshot of a template in Microsoft Word 2007 shows how block fields
                 The following screenshot of a template in Microsoft Word 2007 shows how block fields
                 are used:
                 are used:
             </para>
             </para>
-
+            
             <mediaobject>
             <mediaobject>
                 <imageobject>
                 <imageobject>
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.advanced-mswordblockstemplate.png"
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.advanced-mswordblockstemplate.png"
-                        format="png"></imagedata>
+                        format="PNG"></imagedata>
                 </imageobject>
                 </imageobject>
 
 
                 <caption>
                 <caption>
@@ -479,7 +479,7 @@ blockEnd_block1
                     </para>
                     </para>
                 </caption>
                 </caption>
             </mediaobject>
             </mediaobject>
-
+            
             <para>
             <para>
                 The following code populates the above template with data.
                 The following code populates the above template with data.
             </para>
             </para>
@@ -489,32 +489,32 @@ $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 
 
 $phpLiveDocx->setUsername('myUsername')
 $phpLiveDocx->setUsername('myUsername')
             ->setPassword('myPassword');
             ->setPassword('myPassword');
-
+ 
 $phpLiveDocx->setLocalTemplate('template.doc');
 $phpLiveDocx->setLocalTemplate('template.doc');
-
+ 
 $billConnections = array(
 $billConnections = array(
     array(
     array(
-        'connection_number'   => '+49 421 335 912',
-        'connection_duration' => '00:00:07',
+        'connection_number'   => '+49 421 335 912', 
+        'connection_duration' => '00:00:07', 
         'fee'                 => '€ 0.03',
         'fee'                 => '€ 0.03',
     ),
     ),
     array(
     array(
-        'connection_number'   => '+49 421 335 913',
-        'connection_duration' => '00:00:07',
+        'connection_number'   => '+49 421 335 913', 
+        'connection_duration' => '00:00:07', 
         'fee'                 => '€ 0.03',
         'fee'                 => '€ 0.03',
     ),
     ),
     array(
     array(
-        'connection_number'   => '+49 421 335 914',
-        'connection_duration' => '00:00:07',
+        'connection_number'   => '+49 421 335 914', 
+        'connection_duration' => '00:00:07', 
         'fee'                 => '€ 0.03',
         'fee'                 => '€ 0.03',
     ),
     ),
     array(
     array(
-        'connection_number'   => '+49 421 335 916',
-        'connection_duration' => '00:00:07',
+        'connection_number'   => '+49 421 335 916', 
+        'connection_duration' => '00:00:07', 
         'fee'                 => '€ 0.03',
         'fee'                 => '€ 0.03',
     ),
     ),
 );
 );
-
+ 
 $phpLiveDocx->assign('connection', $billConnections);
 $phpLiveDocx->assign('connection', $billConnections);
 
 
 // ... assign other data here ...
 // ... assign other data here ...
@@ -538,11 +538,11 @@ file_put_contents('document.pdf', $document);
                 e-mail or simply displayed, as is illustrated below in <emphasis>Document Viewer
                 e-mail or simply displayed, as is illustrated below in <emphasis>Document Viewer
                     2.26.1</emphasis> on <emphasis>Ubuntu 9.04</emphasis>:
                     2.26.1</emphasis> on <emphasis>Ubuntu 9.04</emphasis>:
             </para>
             </para>
-
+            
             <mediaobject>
             <mediaobject>
                 <imageobject>
                 <imageobject>
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.advanced-mswordblocksdocument.png"
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.advanced-mswordblocksdocument.png"
-                        format="png"></imagedata>
+                        format="PNG"></imagedata>
                 </imageobject>
                 </imageobject>
 
 
                 <caption>
                 <caption>
@@ -554,7 +554,7 @@ file_put_contents('document.pdf', $document);
                     </para>
                     </para>
                 </caption>
                 </caption>
             </mediaobject>
             </mediaobject>
-
+            
             <para>
             <para>
                 You can download the <acronym>DOC</acronym> <ulink
                 You can download the <acronym>DOC</acronym> <ulink
                     url="http://www.phplivedocx.org/wp-content/uploads/2009/01/telephone-bill-template.doc">template
                     url="http://www.phplivedocx.org/wp-content/uploads/2009/01/telephone-bill-template.doc">template
@@ -566,9 +566,9 @@ file_put_contents('document.pdf', $document);
             <para>
             <para>
                 <emphasis>NOTE:</emphasis> blocks may not be nested.
                 <emphasis>NOTE:</emphasis> blocks may not be nested.
             </para>
             </para>
-        </example>
-
-        <example id="zend.service.livedocx.mailmerge.bitmaps">
+        </sect3>
+            
+        <sect3 id="zend.service.livedocx.mailmerge.bitmaps">
             <title>Generating bitmaps image files</title>
             <title>Generating bitmaps image files</title>
 
 
             <para>
             <para>
@@ -598,14 +598,14 @@ file_put_contents('document.pdf', $document);
             <programlisting language="php"><![CDATA[
             <programlisting language="php"><![CDATA[
 $date = new Zend_Date();
 $date = new Zend_Date();
 $date->setLocale('en_US');
 $date->setLocale('en_US');
-
+ 
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 
 
 $phpLiveDocx->setUsername('myUsername')
 $phpLiveDocx->setUsername('myUsername')
             ->setPassword('myPassword');
             ->setPassword('myPassword');
-
+ 
 $phpLiveDocx->setLocalTemplate('template.docx');
 $phpLiveDocx->setLocalTemplate('template.docx');
-
+ 
 $phpLiveDocx->assign('software', 'Magic Graphical Compression Suite v1.9')
 $phpLiveDocx->assign('software', 'Magic Graphical Compression Suite v1.9')
             ->assign('licensee', 'Daï Lemaitre')
             ->assign('licensee', 'Daï Lemaitre')
             ->assign('company',  'Megasoft Co-operation')
             ->assign('company',  'Megasoft Co-operation')
@@ -613,17 +613,17 @@ $phpLiveDocx->assign('software', 'Magic Graphical Compression Suite v1.9')
             ->assign('time',     $date->get(Zend_Date::TIME_LONG))
             ->assign('time',     $date->get(Zend_Date::TIME_LONG))
             ->assign('city',     'Lyon')
             ->assign('city',     'Lyon')
             ->assign('country',  'France');
             ->assign('country',  'France');
-
+ 
 $phpLiveDocx->createDocument();
 $phpLiveDocx->createDocument();
-
+ 
 // Get all bitmaps
 // Get all bitmaps
 // (zoomFactor, format)
 // (zoomFactor, format)
 $bitmaps = $phpLiveDocx->getAllBitmaps(100, 'png');
 $bitmaps = $phpLiveDocx->getAllBitmaps(100, 'png');
-
+ 
 // Get just bitmaps in specified range
 // Get just bitmaps in specified range
 // (fromPage, toPage, zoomFactor, format)
 // (fromPage, toPage, zoomFactor, format)
 // $bitmaps = $phpLiveDocx->getBitmaps(2, 2, 100, 'png');
 // $bitmaps = $phpLiveDocx->getBitmaps(2, 2, 100, 'png');
-
+ 
 foreach ($bitmaps as $pageNumber => $bitmapData) {
 foreach ($bitmaps as $pageNumber => $bitmapData) {
     $filename = sprintf('documentPage%d.png', $pageNumber);
     $filename = sprintf('documentPage%d.png', $pageNumber);
     file_put_contents($filename, $bitmapData);
     file_put_contents($filename, $bitmapData);
@@ -635,11 +635,11 @@ foreach ($bitmaps as $pageNumber => $bitmapData) {
                 <filename>documentPage2.png</filename>) and writes them to disk in the same
                 <filename>documentPage2.png</filename>) and writes them to disk in the same
                 directory as the executable PHP file.
                 directory as the executable PHP file.
             </para>
             </para>
-
+            
             <mediaobject>
             <mediaobject>
                 <imageobject>
                 <imageobject>
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.bitmaps-documentpage1.png"
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.bitmaps-documentpage1.png"
-                        format="png"></imagedata>
+                        format="PNG"></imagedata>
                 </imageobject>
                 </imageobject>
 
 
                 <caption>
                 <caption>
@@ -650,11 +650,11 @@ foreach ($bitmaps as $pageNumber => $bitmapData) {
                     </para>
                     </para>
                 </caption>
                 </caption>
             </mediaobject>
             </mediaobject>
-
+            
             <mediaobject>
             <mediaobject>
                 <imageobject>
                 <imageobject>
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.bitmaps-documentpage2.png"
                     <imagedata fileref="figures/zend.service.livedocx.mailmerge.bitmaps-documentpage2.png"
-                        format="png"></imagedata>
+                        format="PNG"></imagedata>
                 </imageobject>
                 </imageobject>
 
 
                 <caption>
                 <caption>
@@ -665,17 +665,17 @@ foreach ($bitmaps as $pageNumber => $bitmapData) {
                     </para>
                     </para>
                 </caption>
                 </caption>
             </mediaobject>
             </mediaobject>
-        </example>
+        </sect3>
 
 
         <sect3 id="zend.service.livedocx.mailmerge.templates-types">
         <sect3 id="zend.service.livedocx.mailmerge.templates-types">
             <title>Local vs. Remote Templates</title>
             <title>Local vs. Remote Templates</title>
-
+    
             <para>
             <para>
                 Templates can be stored <emphasis>locally</emphasis>, on the client machine, or
                 Templates can be stored <emphasis>locally</emphasis>, on the client machine, or
                 <emphasis>remotely</emphasis>, on the server. There are advantages and disadvantages
                 <emphasis>remotely</emphasis>, on the server. There are advantages and disadvantages
                 to each approach.
                 to each approach.
             </para>
             </para>
-
+    
             <para>
             <para>
                 In the case that a template is stored locally, it must be transfered from the client
                 In the case that a template is stored locally, it must be transfered from the client
                 to the server on every request. If the content of the template rarely changes, this
                 to the server on every request. If the content of the template rarely changes, this
@@ -683,22 +683,22 @@ foreach ($bitmaps as $pageNumber => $bitmapData) {
                 may take considerable time to transfer it to the server. Local template are useful
                 may take considerable time to transfer it to the server. Local template are useful
                 in situations in which the content of the template is constantly changing.
                 in situations in which the content of the template is constantly changing.
             </para>
             </para>
-
+    
             <para>
             <para>
                 The following code illustrates how to use a local template.
                 The following code illustrates how to use a local template.
             </para>
             </para>
-
+    
             <programlisting language="php"><![CDATA[
             <programlisting language="php"><![CDATA[
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 
 
 $phpLiveDocx->setUsername('myUsername')
 $phpLiveDocx->setUsername('myUsername')
             ->setPassword('myPassword');
             ->setPassword('myPassword');
-
+ 
 $phpLiveDocx->setLocalTemplate('./template.docx');
 $phpLiveDocx->setLocalTemplate('./template.docx');
-
+ 
 // assign data and create document
 // assign data and create document
 ]]></programlisting>
 ]]></programlisting>
-
+    
             <para>
             <para>
                 In the case that a template is stored remotely, it is uploaded once to the server
                 In the case that a template is stored remotely, it is uploaded once to the server
                 and then simply referenced on all subsequent requests. Obviously, this is much
                 and then simply referenced on all subsequent requests. Obviously, this is much
@@ -706,54 +706,54 @@ $phpLiveDocx->setLocalTemplate('./template.docx');
                 on every request. For speed critical applications, it is recommended to use the
                 on every request. For speed critical applications, it is recommended to use the
                 remote template method.
                 remote template method.
             </para>
             </para>
-
+    
             <para>
             <para>
                 The following code illustrates how to upload a template to the server:
                 The following code illustrates how to upload a template to the server:
             </para>
             </para>
-
+    
             <programlisting language="php"><![CDATA[
             <programlisting language="php"><![CDATA[
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 
 
 $phpLiveDocx->setUsername('myUsername')
 $phpLiveDocx->setUsername('myUsername')
             ->setPassword('myPassword');
             ->setPassword('myPassword');
-
+ 
 $phpLiveDocx->uploadTemplate('template.docx');
 $phpLiveDocx->uploadTemplate('template.docx');
 ]]></programlisting>
 ]]></programlisting>
-
+    
             <para>
             <para>
                 The following code illustrates how to reference the remotely stored template on all
                 The following code illustrates how to reference the remotely stored template on all
                 subsequent requests:
                 subsequent requests:
             </para>
             </para>
-
+    
             <programlisting language="php"><![CDATA[
             <programlisting language="php"><![CDATA[
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 
 
 $phpLiveDocx->setUsername('myUsername')
 $phpLiveDocx->setUsername('myUsername')
             ->setPassword('myPassword');
             ->setPassword('myPassword');
-
+ 
 $phpLiveDocx->setRemoteTemplate('template.docx');
 $phpLiveDocx->setRemoteTemplate('template.docx');
-
+ 
 // assign data and create document
 // assign data and create document
 ]]></programlisting>
 ]]></programlisting>
         </sect3>
         </sect3>
 
 
         <sect3 id="zend.service.livedocx.mailmerge.information">
         <sect3 id="zend.service.livedocx.mailmerge.information">
             <title>Getting Information</title>
             <title>Getting Information</title>
-
+    
             <para>
             <para>
                 <classname>Zend_Service_LiveDocx_MailMerge</classname> provides a number of methods
                 <classname>Zend_Service_LiveDocx_MailMerge</classname> provides a number of methods
                 to get information on field names, available fonts and supported formats.
                 to get information on field names, available fonts and supported formats.
             </para>
             </para>
-
+    
             <example id="zend.service.livedocx.mailmerge.information.getfieldname">
             <example id="zend.service.livedocx.mailmerge.information.getfieldname">
                 <title>Get Array of Field Names in Template</title>
                 <title>Get Array of Field Names in Template</title>
-
+    
                 <para>
                 <para>
                     The following code returns and displays an array of all field names in the
                     The following code returns and displays an array of all field names in the
                     specified template. This functionality is useful, in the case that you create an
                     specified template. This functionality is useful, in the case that you create an
                     application, in which an end-user can update a template.
                     application, in which an end-user can update a template.
                 </para>
                 </para>
-
+    
                 <programlisting language="php"><![CDATA[
                 <programlisting language="php"><![CDATA[
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 
 
@@ -765,14 +765,14 @@ $phpLiveDocx->setLocalTemplate($templateName);
 
 
 $fieldNames = $phpLiveDocx->getFieldNames();
 $fieldNames = $phpLiveDocx->getFieldNames();
 foreach ($fieldNames as $fieldName) {
 foreach ($fieldNames as $fieldName) {
-    printf('- %s%s', $fieldName, PHP_EOL);
+    printf('- %s%s', $fieldName, PHP_EOL);   
 }
 }
-]]></programlisting>
+]]></programlisting>            
             </example>
             </example>
-
+    
             <example id="zend.service.livedocx.mailmerge.information.getblockfieldname">
             <example id="zend.service.livedocx.mailmerge.information.getblockfieldname">
                 <title>Get Array of Block Field Names in Template</title>
                 <title>Get Array of Block Field Names in Template</title>
-
+    
                 <para>
                 <para>
                     The following code returns and displays an array of all block field names in the
                     The following code returns and displays an array of all block field names in the
                     specified template. This functionality is useful, in the case that you create an
                     specified template. This functionality is useful, in the case that you create an
@@ -780,7 +780,7 @@ foreach ($fieldNames as $fieldName) {
                     can be populated, it is necessary to find out the names of the contained block
                     can be populated, it is necessary to find out the names of the contained block
                     fields.
                     fields.
                 </para>
                 </para>
-
+    
                 <programlisting language="php"><![CDATA[
                 <programlisting language="php"><![CDATA[
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 
 
@@ -794,15 +794,15 @@ $blockNames = $phpLiveDocx->getBlockNames();
 foreach ($blockNames as $blockName) {
 foreach ($blockNames as $blockName) {
     $blockFieldNames = $phpLiveDocx->getBlockFieldNames($blockName);
     $blockFieldNames = $phpLiveDocx->getBlockFieldNames($blockName);
     foreach ($blockFieldNames as $blockFieldName) {
     foreach ($blockFieldNames as $blockFieldName) {
-        printf('- %s::%s%s', $blockName, $blockFieldName, PHP_EOL);
+        printf('- %s::%s%s', $blockName, $blockFieldName, PHP_EOL);          
     }
     }
 }
 }
-]]></programlisting>
+]]></programlisting>            
             </example>
             </example>
-
+    
             <example id="zend.service.livedocx.mailmerge.information.getfontnames">
             <example id="zend.service.livedocx.mailmerge.information.getfontnames">
                 <title>Get Array of Fonts Installed on Server</title>
                 <title>Get Array of Fonts Installed on Server</title>
-
+    
                 <para>
                 <para>
                     The following code returns and displays an array of all fonts installed on the
                     The following code returns and displays an array of all fonts installed on the
                     server. You can use this method to present a list of fonts which may be used in
                     server. You can use this method to present a list of fonts which may be used in
@@ -811,7 +811,7 @@ foreach ($blockNames as $blockName) {
                     template contains fonts, which are not available on the server,
                     template contains fonts, which are not available on the server,
                     font-substitution will take place. This may lead to undesirable results.
                     font-substitution will take place. This may lead to undesirable results.
                 </para>
                 </para>
-
+    
             <programlisting language="php"><![CDATA[
             <programlisting language="php"><![CDATA[
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 
 
@@ -819,8 +819,8 @@ $phpLiveDocx->setUsername('myUsername')
             ->setPassword('myPassword');
             ->setPassword('myPassword');
 
 
 Zend_Debug::dump($phpLiveDocx->getFontNames());
 Zend_Debug::dump($phpLiveDocx->getFontNames());
-]]></programlisting>
-
+]]></programlisting>            
+    
                 <para>
                 <para>
                     <emphasis>NOTE:</emphasis> As the return value of this method changes very
                     <emphasis>NOTE:</emphasis> As the return value of this method changes very
                     infrequently, it is highly recommended to use a cache, such as
                     infrequently, it is highly recommended to use a cache, such as
@@ -828,17 +828,17 @@ Zend_Debug::dump($phpLiveDocx->getFontNames());
                     application.
                     application.
                 </para>
                 </para>
             </example>
             </example>
-
+    
             <example id="zend.service.livedocx.mailmerge.information.gettemplateformats">
             <example id="zend.service.livedocx.mailmerge.information.gettemplateformats">
                 <title>Get Array of Supported Template File Formats</title>
                 <title>Get Array of Supported Template File Formats</title>
-
+    
                 <para>
                 <para>
                     The following code returns and displays an array of all supported template file
                     The following code returns and displays an array of all supported template file
                     formats. This method is particularly useful in the case that a combo list should
                     formats. This method is particularly useful in the case that a combo list should
                     be displayed that allows the end-user to select the input format of the
                     be displayed that allows the end-user to select the input format of the
                     documentation generation process.
                     documentation generation process.
                 </para>
                 </para>
-
+    
                 <programlisting language="php"><![CDATA[
                 <programlisting language="php"><![CDATA[
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge()
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge()
 
 
@@ -846,26 +846,26 @@ $phpLiveDocx->setUsername('myUsername')
             ->setPassword('myPassword');
             ->setPassword('myPassword');
 
 
 Zend_Debug::dump($phpLiveDocx->getTemplateFormats());
 Zend_Debug::dump($phpLiveDocx->getTemplateFormats());
-]]></programlisting>
-
+]]></programlisting>    
+    
                 <para>
                 <para>
                     <emphasis>NOTE:</emphasis> As the return value of this method changes very
                     <emphasis>NOTE:</emphasis> As the return value of this method changes very
                     infrequently, it is highly recommended to use a cache, such as
                     infrequently, it is highly recommended to use a cache, such as
                     <classname>Zend_Cache</classname> - this will considerably speed up your
                     <classname>Zend_Cache</classname> - this will considerably speed up your
                     application.
                     application.
-                </para>
+                </para>        
             </example>
             </example>
-
+    
             <example id="zend.service.livedocx.mailmerge.information.getdocumentformats">
             <example id="zend.service.livedocx.mailmerge.information.getdocumentformats">
                 <title>Get Array of Supported Document File Formats</title>
                 <title>Get Array of Supported Document File Formats</title>
-
+    
                 <para>
                 <para>
                     The following code returns and displays an array of all supported document file
                     The following code returns and displays an array of all supported document file
                     formats. This method is particularly useful in the case that a combo list should
                     formats. This method is particularly useful in the case that a combo list should
                     be displayed that allows the end-user to select the output format of the
                     be displayed that allows the end-user to select the output format of the
                     documentation generation process.
                     documentation generation process.
                 </para>
                 </para>
-
+    
                 <programlisting language="php"><![CDATA[
                 <programlisting language="php"><![CDATA[
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 
 
@@ -873,19 +873,19 @@ $phpLiveDocx->setUsername('myUsername')
             ->setPassword('myPassword');
             ->setPassword('myPassword');
 
 
 Zend_Debug::dump($phpLiveDocx->getDocumentFormats());
 Zend_Debug::dump($phpLiveDocx->getDocumentFormats());
-]]></programlisting>
+]]></programlisting>            
             </example>
             </example>
-
+    
             <example id="zend.service.livedocx.mailmerge.information.getimageformats">
             <example id="zend.service.livedocx.mailmerge.information.getimageformats">
                 <title>Get Array of Supported Image File Formats</title>
                 <title>Get Array of Supported Image File Formats</title>
-
+    
                 <para>
                 <para>
                     The following code returns and displays an array of all supported image file
                     The following code returns and displays an array of all supported image file
                     formats. This method is particularly useful in the case that a combo list should
                     formats. This method is particularly useful in the case that a combo list should
                     be displayed that allows the end-user to select the output format of the
                     be displayed that allows the end-user to select the output format of the
                     documentation generation process.
                     documentation generation process.
                 </para>
                 </para>
-
+    
                 <programlisting language="php"><![CDATA[
                 <programlisting language="php"><![CDATA[
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
 
 
@@ -893,14 +893,14 @@ $phpLiveDocx->setUsername('myUsername')
             ->setPassword('myPassword');
             ->setPassword('myPassword');
 
 
 Zend_Debug::dump($phpLiveDocx->getImageFormats());
 Zend_Debug::dump($phpLiveDocx->getImageFormats());
-]]></programlisting>
-
+]]></programlisting>    
+    
                 <para>
                 <para>
                     <emphasis>NOTE:</emphasis> As the return value of this method changes very
                     <emphasis>NOTE:</emphasis> As the return value of this method changes very
                     infrequently, it is highly recommended to use a cache, such as
                     infrequently, it is highly recommended to use a cache, such as
                     <classname>Zend_Cache</classname> - this will considerably speed up your
                     <classname>Zend_Cache</classname> - this will considerably speed up your
                     application.
                     application.
-                </para>
+                </para>        
             </example>
             </example>
         </sect3>
         </sect3>
     </sect2>
     </sect2>