in reply to Re: PDF::API2 - Test text that will fit in area
in thread PDF::API2 - Test text that will fit in area

Seconded.

Here's a hack to temporarily turn-off output, if you're wanting to pre-compute sizes using one of the higher-level methods such as text_center() or paragraph() - Re: PDF::API2 paragraph vertical align.