Pregunta

Estoy creando mi imagen así:

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

Ahora, cuando depuro, veo _width y _height, pero no puedo acceder a ellos usando

$image1->_width;

porque está protegido.¿Cómo obtengo esos valores?

¡Gracias!

¿Fue útil?

Solución

prueba

$image1->getPixelWidth();
$image1->getPixelHeight();
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top