2008年9月24日星期三

Re: [fw-mvc] Image in Zend_Pdf

HI,

You are missing the coordinates params

check this for more info

http://framework.zend.com/manual/en/zend.pdf.drawing.html#zend.pdf.drawing.image-drawing


Regards


jjsanders wrote:
>
> 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
> <http://www.php.net/dirname>(__FILE__).'/../../pdf/blaat.pdf';
> $pdf->pages[] = new Zend_Pdf_Page(Zend_Pdf_Page::SIZE_A4);
> Zend_Pdf_Image::imageWithPath(dirname
> <http://www.php.net/dirname>(__FILE__).'/../../pdf/images/nrka.jpg');
> try{
> $pdf->save($saveLoc);
> }catch(Zend_Pdf_Exception $e){
> echo <http://www.php.net/echo> $e;
> }
>
>
> }
>
>
> What Am i doing wrong?
> Kind regards,
>
> J. Sanders
>
>

--
View this message in context: http://www.nabble.com/Image-in-Zend_Pdf-tp19656968p19657579.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: