Calculate the width of a table in iText 7
问题 I use iText 7 with html2pdf 2.1.2 version and try to convert HTML file to PDF. I use HtmlConverter#convertToElements to process an html file. Then I would like to calculate the width of one of the elements (a table in particular). I have tried to implement custom TagWorker class, but i get table only after it's filled. Also tried convertToDocument and some other ways but with no success. Is there a way to get a table width at run time? Thanks in advance. 回答1: The bad news: in general, it's