
February 22nd, 2013, 12:52 AM
|
 |
Contributed User
|
|
|
|
|
> $page->drawText($comm->getData('comment'), 235, $this->y, 'UTF-8');
So what does drawText do?
Or more specifically, what API are you using, and is there something like drawWrappedText which might offer you the ability to do some formatting.
If there is no higher level function, you might have to first do
$t = $comm->getData('comment');
Then
- get the length of the text,
- chop $t into segments of up to 80 characters (however many fit on a line)
- then draw your list of segments in your loop.
> foreach($commentsCollection as $comm)
Are there limits on the length of each comment and the number of comments?
Would you need to consider spilling a lot of comment onto multiple PDF pages?
|