The main question is: is it possible to determine the height of the MultiCell before it is placed in the document?
Reason: I was tasked with creating a PDF version of the form. This form allows you to enter text with the resulting variable length. One person whom I did not enter, another person can write several paragraphs. "The Powers That Be" does not want this text to break between pages.
Currently, after placing each block, I check the position on the page, and if I'm close to the end, I create a new page.
if($this->getY() >= 250) {
$this->AddPage('P');
}
For the most part this works. But there are a few vile ones that come in, say, 249, and then have a boat of text. Apparently, it would be wiser to determine the height of the block before placing it to see if it really fits on the page.
Of course, there should be a way to do this, but googling around is not very useful.
Edit to clarify: PDF is created after the form is submitted. Inactive, editable PDF form ...
source
share