【问题标题】:Zend PDF - get the width and height of an image?Zend PDF - 获取图像的宽度和高度?
【发布时间】:2012-02-22 12:02:18
【问题描述】:

我正在创建这样的图像:

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

现在,当我调试时,我看到了 _width 和 _height,但我无法使用

$image1->_width;

因为它受到保护。我如何获得这些值?

谢谢!

【问题讨论】:

    标签: php pdf-generation zend-pdf


    【解决方案1】:

    试试

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

    【讨论】:

      猜你喜欢
      • 2010-11-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-23
      • 2011-11-26
      • 2011-01-02
      • 2014-07-15
      • 1970-01-01
      相关资源
      最近更新 更多