I am using Zend Framework and inherited classes i.e. My_Pdf (that i got from sourceforge and My_Pdf library is used to draw tables)to create PDF file from database. When I create PDF file without table outlines it is working well and generating PDF. But when i try to draw table corresponding to data, I got an error,
Fatal error: Declaration of My_Pdf_Page::drawImage() must be compatible with that of Zend_Pdf_Canvas_Interface::drawImage() in C:\Users\TranceServe\Zend\workspaces\DefaultWorkspace7\Crushed_PLanet\library\My\Pdf\Page.php on line 369
Please guide me what to do.
I came across this problem myself. I’ve not tested in 1.11.3, but in 1.11.0. All you have to do is change your method drawImage in My_Pdf_Page is specify the argument $image as being of object type ‘Zend_Pdf_Resource_Image’: