You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first of all thank you guys for this Libary, it its pretty much what we need in our project right now. I started playing around a little bit an managed to insert only certain slides:
use Cristal\Presentation\PPTX;
require 'vendor/autoload.php';
$basePPTX = new PPTX("mappenlager\Präsentation1.pptx");
$endPPTX = new PPTX("mappenlager\Präsentation2.pptx");
//Get the slides as an Array of Slides
$SlideArray = array();
$SlideArray = $endPPTX->getSlides();
//This adds only the first slide of the end pptx
$basePPTX->addSlide($SlideArray[0]);
//This adds only the second slide of the end pptx
$basePPTX->addSlide($SlideArray[1]);
So far so good, it works fast and fine ! Now my question: is there a possibility to tell the script where to insert those slides? For Example: Slide 1 in the endPPtx should be on Position 3 in the basePptx ? How would i approach this ?
Thank you very much
Fabian
The text was updated successfully, but these errors were encountered:
I think i was too quick with my questions, because i just tested the functionallity with some pptx where i just wrote Presentation 1 Slide 1 in the headline, with this simple slides it worked fine....
Now i tried the same with some propper formatted Slides from our customer and it says that the merged presentation is corrup, when i repair it the whole layout of the new slides is pretty much messed up :(
Hello,
first of all thank you guys for this Libary, it its pretty much what we need in our project right now. I started playing around a little bit an managed to insert only certain slides:
use Cristal\Presentation\PPTX;
require 'vendor/autoload.php';
$basePPTX = new PPTX("mappenlager\Präsentation1.pptx");
$endPPTX = new PPTX("mappenlager\Präsentation2.pptx");
//Get the slides as an Array of Slides
$SlideArray = array();
$SlideArray = $endPPTX->getSlides();
//This adds only the first slide of the end pptx
$basePPTX->addSlide($SlideArray[0]);
//This adds only the second slide of the end pptx
$basePPTX->addSlide($SlideArray[1]);
So far so good, it works fast and fine ! Now my question: is there a possibility to tell the script where to insert those slides? For Example: Slide 1 in the endPPtx should be on Position 3 in the basePptx ? How would i approach this ?
Thank you very much
Fabian
The text was updated successfully, but these errors were encountered: