title: Using PDFTable lib extension with zendpdf but getting issue
body: <p>How to apply word wrap using zend_pdf library, I am using MyPDFTable lib as an extension for zendPdf lib.<img src="https://i.stack.imgur.com/7CYsR.jpg" alt="enter image description here"></p>
  
  <p>I have used following code.</p>
  
  <pre><code>&lt;?php
  // include auto-loader class
  require_once 'Zend/Loader/Autoloader.php';
  
  // register auto-loader
  $loader = Zend_Loader_Autoloader::getInstance();
  
  try {
    // set up database access parameters  
    $params = array ('host'     =&gt; '127.0.0.1',
                 'username' =&gt; 'user',
                 'password' =&gt; 'pass',
                 'dbname'   =&gt; 'world');
  
    // configure adapter and query database                   
    $db = Zend_Db::factory('PDO_MYSQL', $params);
    $stmt = $db-&gt;query('SELECT Name, Code, Region FROM country LIMIT 0, 150');
  
    // create PDF
    $pdf = new My_Pdf_Document('example.pdf', '.');
  
    // create page
    $page = $pdf-&gt;createPage();
  
    // define font resource
    $font = Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA);
  
    // set font
    $page-&gt;setFont($font, 24);
  
    // create table
    $table = new My_Pdf_Table(3);
  
    // iterate over record set
    // set up table content
    while ($record = $stmt-&gt;fetch()) {
      $row = new My_Pdf_Table_Row();
      $cols = array();
      foreach ($record as $k =&gt; $v) {
        $col = new My_Pdf_Table_Column();
        $col-&gt;setText($v);
        $cols[] = $col;      
      }
      $row-&gt;setColumns($cols);
      $row-&gt;setFont($font, 14);
      $row-&gt;setBorder(My_Pdf::TOP, new Zend_Pdf_Style());
      $row-&gt;setBorder(My_Pdf::BOTTOM, new Zend_Pdf_Style());
      $row-&gt;setBorder(My_Pdf::LEFT, new Zend_Pdf_Style());
      $row-&gt;setCellPaddings(array(10,10,10,10));
      $table-&gt;addRow($row);
    }
  
    // add table to page
    $page-&gt;addTable($table, 0, 0);
  
    // add page to document
    $pdf-&gt;addPage($page);
  
    // save as file
    $pdf-&gt;save();
    echo 'SUCCESS: Document saved!';  
  } catch (Zend_Pdf_Exception $e) {
    die ('PDF error: ' . $e-&gt;getMessage());  
  } catch (Exception $e) {
    die ('Application error: ' . $e-&gt;getMessage());    
  }
  ?&gt;
  </code></pre>
  
  <p>You will find this code on <a href="http://devzone.zend.com/1776/creating-pdf-documents-with-zend-framework/" rel="nofollow noreferrer">http://devzone.zend.com/1776/creating-pdf-documents-with-zend-framework/</a> In topic "Turning The Tables".</p>