0

I need to read a few "basic" information from PPTX or ODF slides, such as objects' position, size, font, color, media source in the case of pictures and videos.

I have been looking around for libraries (PHP / Javascript) or even just for format documentation so to write something from the ground up, but couldn't find anything suitable.

Any good recommendation?

resle
  • 2,254
  • 4
  • 19
  • 37
  • Have you looked at [PHPPresentation](https://github.com/PHPOffice/PHPPresentation) from PHPOffice? I haven't used it myself but I use their spreasheet library which works like a charm. – Noah Boegli Oct 22 '21 at 16:04
  • Writes to presentations, doesn't read – resle Oct 22 '21 at 16:05
  • What do you mean? There is a [reader interface](https://github.com/PHPOffice/PHPPresentation/blob/develop/src/PhpPresentation/Reader/ReaderInterface.php) implemented for several presentation types that allows you to retrieve a `PHPPresentation` object. From there you can read properties, get slides count and access individual slides. – Noah Boegli Oct 22 '21 at 16:12
  • 1
    sorry, project intro only mentions "writing" and I also got this project mixed up with something I else I tried previously, also write-only. Going to test it, thanks – resle Oct 22 '21 at 18:36

0 Answers0