How to calculate the height of a MultiCell/writeHTMLCell in TCPDF?

Posted by merkuro on Stack Overflow See other posts from Stack Overflow or by merkuro
Published on 2009-07-03T10:12:41Z Indexed on 2010/03/31 5:53 UTC
Read the original article Hit count: 772

Filed under:
|
|

I try to create a PDF with multiple pages and need to calculate the height of each individual element (MultiCell) in advance to prepare for a page break. According to the documentation there are a couple of functions out there like GetCharWidth/GetStringWidth to support me in doing it on my own, but besides a potential performance lost I probably will not do it the right anyway. Suggestions to achieve my goal in a more elegant way?

Reference: TCPDF

© Stack Overflow or respective owner

Related posts about tcpdf

Related posts about pdf