Common icon indicating copy to clipboard operation
Common copied to clipboard

Bug with PhpPresentation 1.0.0 and PhpPresentation 1.1.0

Open isobaric opened this issue 8 months ago • 1 comments

Run: PhpOffice\PhpPresentation\IOFactory::load("demo.pptx"); get some error message: PhpOffice\PhpPresentation\AbstractShape::setWidth(): Argument #1 ($pValue) must be of type int, float given, called in /xxx/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint2007.php on line 972

error file: change return type float to int can fixed it; Image

isobaric avatar Mar 11 '25 12:03 isobaric

From 1.0.1 to 1.0.5 something broke pptx files.

Probably relevant:

  • https://github.com/PHPOffice/Common/commit/5a2eeb82d4dfce4ce2163819063ba6f5a80c3e91
  • https://github.com/PHPOffice/PHPPresentation/issues/858

DanielRuf avatar May 27 '25 07:05 DanielRuf

please fix, it doesn't make sense to make this simple pull request

mureithimaina avatar Jul 04 '25 08:07 mureithimaina