title: iText shrink table column to fit contents
body: <p>In my iText document, I have a lot of tables scattered around, each with only one row of two columns. I would like to automatically shrink the leftmost column to fit its contents, and expand the rightmost column to fill the remaining space.</p>
  
  <p>The exact contents of these two columns varies greatly, so there's no way to determine ahead of time what the exact width should be.</p>
  
  <p>All of the content in this screenshot is wrapped in one outer table. Each nested table has its two columns highlighted red and blue. I would like to shrink the red columns as narrow as they can get without forcing the text to take up more lines than it has to.
  <a href="https://i.stack.imgur.com/sLSEj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sLSEj.png" alt="nested table layout"></a></p>
  
  <p>In this case, the contents of the red cells are just a paragraph each, but it's possible they may contain a further-nested table with two cells of its own (which probably faces the same problem).</p>
  
  <p>Is there a simple way to expand one column and shrink another without specifying exact or relative widths?</p>