title: iText -- How do I get the rendered dimensions of text?
body: <p>I would like to find out information about the layout of text in a PdfPCell. I'm aware of BaseFont.getWidthPointKerned(), but I'm looking for more detailed information like:</p>
  
  <ol>
  <li><p>How many lines would a string need if rendered in a cell of a given width (say, 30pt)? What would the height in points of the PdfPCell be?</p></li>
  <li><p>Give me the prefix or suffix of a string that fits in a cell of a given width and height. That is, if I have to render the text "Today is a good day to die" in a specific font in a PdfPCell of width 12pt and height 20pt, what portion of the string would fit in the available space?</p></li>
  <li><p>Where does iText break a given string when asked to render it in a cell of a given width?</p></li>
  </ol>
  
  <p>This is with regard to iText 2.1.6. Thanks.</p>