Question

I am creating my image like this:

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

Now, when I debug, I see _width and _height, but I cant access them using

$image1->_width;

because its protected. How do I get those values?

Thanks!

Was it helpful?

Solution

try

$image1->getPixelWidth();
$image1->getPixelHeight();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top