title: column text wrap using fpdf
body: <p>I am using fpdf for generating a pdf file. I wanted to output a table with some columns. The problem I encountered is I am unable to wrap the text header of column label from second to eighth array. The text exceeding the array length is not in a view of column label.Any suggestions will be great help.</p>
  
  <p>here is the code </p>
  
  <pre><code>$header = array(
  array("label"=&gt;"Subject Category", "length"=&gt;75, "align"=&gt;"L"),
  array("label"=&gt;"Total Pubs", "length"=&gt;15, "align"=&gt;"L"),
  array("label"=&gt;"%Pubs in Top 10% SNIP", "length"=&gt;15, "align"=&gt;"L"),
  array("label"=&gt;"%Pubs in Top 25% SNIP", "length"=&gt;15, "align"=&gt;"L"),
  array("label"=&gt;"Total Cites", "length"=&gt;15, "align"=&gt;"L"),
  array("label"=&gt;"%Cites in Top 10% SNIP", "length"=&gt;15, "align"=&gt;"L"),
  array("label"=&gt;"%Cites in Top 25% SNIP", "length"=&gt;15, "align"=&gt;"L"),
  array("label"=&gt;"4-year H_Index", "length"=&gt;15, "align"=&gt;"L")
  
  );
  
  foreach ($header as $col) {
    $pdf-&gt;Cell($col['length'],15, $col['label'], 1, '0', $col['align'], true);
   }
  </code></pre>