Zend pdf错误与功能图像绘制

I want to put image to my pdf file from code function in zend that i get simple example from here http://framework.zend.com/manual/1.12/en/zend.pdf.drawing.html and this is my code

    $image = Zend_Pdf_Image::imageWithPath("' . $base . '/images/logo1.png");
    $page->drawImage($image, 100, 100, 400, 300);
    // add page to document
    $pdf->pages[] = $page;
    $pdf->save("data/reports/-report.pdf");

but i get errors like this

PDF error: Cannot create image resource. File not found.

any help with it. thanks

your including single quotes inside a file name.

$image = Zend_Pdf_Image::imageWithPath("' . $base . '/images/logo1.png");

change it so it reads

$image = Zend_Pdf_Image::imageWithPath($base . "/images/logo1.png");