How can I get the string length in TCPDF?

In TCPDF, GetCellHeight() exists to measure cell height.

How do you measure the length or width of a string (or string block) in TCPDF?

+6
source share
1 answer

Method to get the string length GetStringWidth() . Also check the getNumLines() and getStringHeight() methods.

+11
source

Source: https://habr.com/ru/post/887111/


All Articles