There are many ways to notify users of error, information or warning messages. one very simple way is to define a notify method that creates an array of messages for the view. But Zend Framework also provides the Flash Messenger action helper that allows messaging to a redirected page. We find on Sean"s blog a Prority Messenger that extends this concept to various types of messages. Part of the trick is to follow the DRY convention : Don't Repeat Yourself, e.g. avoid duplicating code.
Generating PDF with Zend is not the best option : fpdf does a real good job at tables especially, including functions that transform HTML tables to PDF. Wonderful. If you still want to go with ZEND_PDF and make tables in yur PDF well you'll have to search the internet for specific classes that do the job.
- Logan Buesching developped a Zend PDF CELL class that was followed by a good community of users, but seems to be abandonned since 2009
- The Gorilla Zend PDF Table class seems to be the most advanced interpretation of the subject. Interesting discussion on StackOverflow describes a technique using php wordwrap function