EOB
EOB

Reputation: 3085

Zend PDF - get the width and height of an image?

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!

Upvotes: 2

Views: 1676

Answers (1)

Rufinus
Rufinus

Reputation: 30741

try

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

Upvotes: 6

Related Questions