2012-02-22 98 views
1

我創造我的形象是這樣的:Zend PDF - 獲取圖像的寬度和高度?

$image1 = Zend_Pdf_Image::imageWithPath($path); 

現在,當我調試,我看到_width和_height,但我不能使用

$image1->_width; 

訪問它們,因爲它的保護。我如何獲得這些值?

謝謝!

回答

4

嘗試

$image1->getPixelWidth(); 
$image1->getPixelHeight(); 
+0

JEP,謝謝,那做到了! – EOB 2012-02-22 12:13:59