Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 01 10:36
    limbanisoftwares opened #680
  • Sep 15 16:19

    github-actions[bot] on gh-pages

    deploy: 5bcb57f54d88f89ade72f2b… (compare)

  • Sep 15 16:14

    Progi1984 on develop

    Added support for PHP 8.1 Merge pull request #661 from Pr… (compare)

  • Sep 15 16:14
    Progi1984 closed #661
  • Sep 15 16:14
    Progi1984 milestoned #661
  • Sep 13 06:24
    Shweta-Grover9 commented #148
  • Sep 10 07:33
    mindline-analytics commented #676
  • Sep 09 12:05

    github-actions[bot] on gh-pages

    deploy: 6bea4962b38c893f08647ae… (compare)

  • Sep 09 12:00
    Progi1984 milestoned #544
  • Sep 09 12:00
    Progi1984 demilestoned #544
  • Sep 09 12:00
    Progi1984 milestoned #435
  • Sep 09 12:00
    Progi1984 demilestoned #435
  • Sep 09 12:00
    Progi1984 milestoned #432
  • Sep 09 12:00
    Progi1984 demilestoned #432
  • Sep 09 12:00
    Progi1984 milestoned #366
  • Sep 09 12:00
    Progi1984 demilestoned #366
  • Sep 09 12:00
    Progi1984 milestoned #354
  • Sep 09 12:00
    Progi1984 demilestoned #354
  • Sep 09 12:00
    Progi1984 milestoned #352
  • Sep 09 12:00
    Progi1984 demilestoned #352
ThaDaVos
@ThaDaVos
I haven't included the sample_header because I thought it is just a simple header file
Thomas Citharel
@tcitworld
Well, it's the one that does all the display stuff.
ThaDaVos
@ThaDaVos
I'll try creating a header file
Thomas Citharel
@tcitworld
PHPPresentation is just a object representing the presentation data, it doesn't have any methods or so to render itself.
ThaDaVos
@ThaDaVos
Ah, good to know
Thomas Citharel
@tcitworld
That's why in the sample there's this header file that's used in all samples.
ThaDaVos
@ThaDaVos
Is it possible to actually show the presentation itself?
Thomas Citharel
@tcitworld
Well, if you have exactly the same thing as the sample, yes.
ThaDaVos
@ThaDaVos
It just shows a tree structure
Thomas Citharel
@tcitworld
Maybe there's a better sample, but you have to work everything else, yeah
ThaDaVos
@ThaDaVos
My goal is to actually play a powerpoint presentation, this is possible right?
Thomas Citharel
@tcitworld
no
not that i know of
ThaDaVos
@ThaDaVos
Oh I thought that PHPOfficePHPPresentation was made for that
My mistake
Thomas Citharel
@tcitworld
PHPOffice is a toolbox / library to work with files, not a ready-to-use app
ThaDaVos
@ThaDaVos
I know, but I thought it was capable of playing a powerpoint presentation with animations in the browser
Thomas Citharel
@tcitworld
Nah. I wanted to work on that to import .ppt into Framaslides, but never got the time.
If you want animations in the browser and all that sort of stuff, checkout impress.js, but it's only html
ThaDaVos
@ThaDaVos
Ah, thanks for your time then but this isn't what I'm looking for.
Thanks for the info, I'll take a look, have a nice day
Progi1984
@Progi1984
@tcitworld Thanks for the support :)
Thomas Citharel
@tcitworld
o/
Julio Henrique
@juliohds
any know about bug in images with slide master?
Adrien Crivelli
@PowerKiKi
@Progi1984, PhpPresentation first release is about 4 years old (and last release ~6 months old), shouldn't we release a 1.0.0 soonish to show that the project is mature and has been production ready for a while ?
slolo2000
@slolo2000

Hello, when trying to load pptx file I have the following error:
Warning: imagecreatefromstring(): Data is not in a recognized format in D:\Test\vendor\phpoffice\phppresentation\src\PhpPresentation\Reader\PowerPoint2007.php on line 731
Warning: imagesx() expects parameter 1 to be resource, boolean given in D:\Test\vendor\phpoffice\phppresentation\src\PhpPresentation\Shape\Drawing\Gd.php on line 78
Warning: imagesy() expects parameter 1 to be resource, boolean given in D:\Test\vendor\phpoffice\phppresentation\src\PhpPresentation\Shape\Drawing\Gd.php on line 79

In fact, in the pptx file there is an "image". I suspect that this image was paste from a Word document because when I save it from pptx file, PowerPoint save it as .emf file
So, is PhpPresentation really support this type of object?

Otherwise, do I have to load document like this (with @ in order to skip warning):
$docPpt = @PhpPresentation\IOFactory::load($inputFileName);

Thanks in advance and have a nice day.

mhasanshahid
@mhasanshahid
I have a question related to scatter plot. It takes a series with an array. Inside that array we have key => value pairs. I suppose X as a key and Y as a value and it creates my scatter chart with X Y value. But the problem is that my X values can repeat, but as a key of an array it should always be unqiue
how can i resolve this?
@Progi1984
mhasanshahid
@mhasanshahid
PHPPresentation uses PHPExcel for writer of pptcharts, but at the same time the library phpexcel itself says its depricated and should not be used, and spreadsheet should be used. @Progi1984
Progi1984
@Progi1984
@juliohds Could you open an issue, please ?
@PowerKiKi I have some fu**ing problems with validation before that, but it's in my pipe ;)
@slolo2000 Actually, PhpPresentation doesn't manage EMF file (like PhpWord : PHPOffice/PHPWord#1480 & PhpSpreadsheet : https://github.com/PHPOffice/PhpSpreadsheet/issues/274) But you can open an issue, i will try to create a solution for all PhpOffice libraries
@mhasanshahid Have you looked at the samples ?
@mhasanshahid I open an issue, and I have applied a label Hacktoberfest for attracting developers to make a PR for Hacktoberfest (https://hacktoberfest.digitalocean.com)
janetthecoder
@janetthecoder

Hey @Progi1984 It seems like PowerPoint 2007 can't open files (correctly) created with PHPPresentation.
Text is an issue, it appears white, and spacing is not correct.

I was wondering if there is a temporary fix I could make so that at least the simple PPTs we are making can show up correctly in PowerPoint 2007.

Btw, total respect to you/your team for this. It is an incredible library.
Progi1984
@Progi1984
@janetthecoder What is the problem ? The render or the open in Office ?
Could you update the ticket with some sample code ?
janetthecoder
@janetthecoder
Continuing this on #494
janetthecoder
@janetthecoder
Hi, I've replied with the sample code @Progi1984
Progi1984
@Progi1984
@janetthecoder Perfect
janetthecoder
@janetthecoder
Let me know if I can be of assistance.
Progi1984
@Progi1984
@janetthecoder We are open to pull requests ;)
janetthecoder
@janetthecoder
@Progi1984 Really sorry
I don't know or understand the library well enough to fix this at this point, it could take me months to understand the inner workings. :)
janetthecoder
@janetthecoder
@Progi1984 I was hoping to hear back from you. Any luck with the issue of PowerPoint 2007? :)
Progi1984
@Progi1984
@janetthecoder Actually no news on this ticket. I work on a XSD for validating but it's no so simple.
Van Tristan
@Noctis17
hello and good day! is there anyone I can talk to about PHPPresentation?
Hello? anyone please?
Van Tristan
@Noctis17
sir @PowerKiKi are you online?
sir @Progi1984 are you online?