Hhello everyone | ||
i am trying to add an existing image to my pdf | ||
but i dont"t see the image on my pdf | ||
| here is my code: public function create_pdf(){ $pdf = new Zend_Pdf(); $saveLoc = dirname(__FILE__).'/../../pdf/blaat.pdf'; $pdf->pages[] = new Zend_Pdf_Page(Zend_Pdf_Page::SIZE_A4); Zend_Pdf_Image::imageWithPath(dirname(__FILE__).'/../../pdf/images/nrka.jpg'); try{ $pdf->save($saveLoc); }catch(Zend_Pdf_Exception $e){ echo $e; } } | What Am i doing wrong? Kind regards, J. Sanders |
2008年9月24日星期三
[fw-mvc] Image in Zend_Pdf
订阅:
博文评论 (Atom)
没有评论:
发表评论