Here is an easy trick to enter multi-line text with Zend_Pdf which I use in some Magento PDF creators $this->y = 150; $description = wordwrap(strip_tags($product->getDescription()), 110, "<br />"); foreach (explode("<br />", $description) as $i => $line) { $page->drawText($line, 65, $this->y – $i * 12, ‘UTF-8′); }
Archive for the ‘PHP’ Category
Zend_Pdf drawing multi-line text
Posted: 31st oktober 2011 by Paul de Raaij in PHPTags: magento, multi-line text, zend_pdf
0
Using Doctrine in Joomla
Posted: 5th maart 2011 by Paul de Raaij in PHP, WebdevelopmentTags: doctrine, integration, joomla
Joomla is a decent CMS with very nice features. It works great for the end user and has many components ready to use from the online world. What I don’t like personally, as a developer, is the model implementation in Joomla. For me the way ‘ model and table’ classes are implemented, just doesn’t feel [...]
A way to implement unit testing in Joomla!
Posted: 31st juli 2010 by Paul de Raaij in PHP, WebdevelopmentTags: joomla, TDD, unit testing
Since a couple of months I’m not anymore self-employed and am I working for a company who develops for ActiveCollab, Magento and Joomla!. While developing I’m trying to work according the TDD paradigm. So you write your tests first and then you develop the business logic to succeed the failing test. I’d have to admit that Joomla! [...]
Custom symfony filters to filter model relations
Posted: 21st april 2010 by Paul de Raaij in PHP, WebdevelopmentTags: symfony
Symfony: Multiple embedded forms in a specific layout
Posted: 27th februari 2010 by Paul de Raaij in PHP, WebdevelopmentTags: ontwikkeling, symfony
Dit wil ik in 2010 doen
Posted: 15th januari 2010 by Paul de Raaij in Algemeen, PHP, WebdevelopmentTags: ontwikkeling
