Zend PDF - get the width and height of an image?
-
29-10-2019 - |
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!
Solution
try
$image1->getPixelWidth();
$image1->getPixelHeight();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow