Questions tagged [phppresentation]

PHPPresentation is a library written in pure PHP that provides a set of classes to write to different presentation file formats, i.e. Microsoft Office Open XML (OOXML or OpenXML) or OASIS Open Document Format for Office Applications (OpenDocument or ODF).

PHPPresentation is a library written in pure PHP that provides a set of classes to write to different presentation file formats, i.e. Microsoft Office Open XML (OOXML or OpenXML) or OASIS Open Document Format for Office Applications (OpenDocument or ODF).

Source: https://github.com/PHPOffice/PHPPresentation

53 questions
10
votes
2 answers

PhpPresentation imagecreatefromstring(): Data is not in a recognized format - PHP7.2

I am trying to use PhpPresentation to read a sample.pptx file using the simple instructions for readers in their docs and I am getting: imagecreatefromstring(): Data is not in a recognized format I have checked that I have PHP7.2-gd installed and…
Justin Erswell
  • 688
  • 7
  • 42
  • 87
3
votes
1 answer

PhpPresentation Axis Label Format

I am trying to format the labels on the y axis $axis->setFormatCode('#.0\%'); This is providing no change but I have confirmed that the format code is setting properly by adding an echo of getFormatCode(); in the writer class. I have tested and this…
Kevin Smeeks
  • 185
  • 10
3
votes
1 answer

PHPOffice PHPPresentation lose original styling on saving pptx

I have simple code that: Load template pptx (*) Duplicate few slides Hydrate those slides with values (just replacing place-holder texts) Save result to new file Unfortunately PHPOffice's PHPPresentation is unable to retain slide styling present…
przemo_li
  • 3,932
  • 4
  • 35
  • 60
2
votes
0 answers

PhpPresentation not showing Charts (using CodeIgniter on PHP 5.6)

With my Laravel app, the PHPPresentation library I had is producing fine charts with no errors at all. Now when I'm applying it on a CodeIgniter app, I just copy pasted the code and installed a composer, the chart isn't working anymore I tried to…
Suomynona
  • 639
  • 1
  • 5
  • 20
2
votes
0 answers

PHPPresentation - issue loading then saving PP07 file

I'm having issues just loading a PowerPoint 2007 (.pptx) file then saving it again. Even without making any changes to it the images from the original file end up missing. require_once…
Arkandel
  • 339
  • 2
  • 10
1
vote
0 answers

Convert PPT and PPTX to PDF - PHP

I have plenty of ppt and pptx files that I am trying to convert to pdf using PHP. Basing on PHPOffice I have able to convert xlsx or xls to pdf, when it comes to ppt or pptx I am facing difculities as I am assuing its not as much reliable in that…
Osama Hussein
  • 69
  • 2
  • 8
1
vote
0 answers

PHPOffice/PHPPresentation (PowerPoint) how to put a chart (createChartShape) inside a table cell?

By following the docs I found how to draw a chart directly inside the PowerPoint slide like this: $seriesData = array( 'Monday' => 12, 'Tuesday' => 15, 'Wednesday' => 13, ); $series = new…
Vlado
  • 3,517
  • 2
  • 26
  • 24
1
vote
1 answer

How to change Chart background color in PhpPresentation?

I know how to change background color in slide, but i can't find how to change background color in chart. Default Chart I use a default code from PhpPresentation Any one can help?
1
vote
2 answers

Style & layout is not copied while creating new pptx from pptx in PHPPresentation

I want to split slides of one pptx file into seperated pptx files, containing one slide each. The content/text is copied but the layout & styling is not copied. Here is the code. Can anyone please help ?
Rockers Niloy
  • 101
  • 2
  • 12
1
vote
0 answers

Is there a way to create a line chart with dashed lines with PHPPresentation?

Is there a way to create a line chart with a dashed line in PhpOffice/PHPPresentation? I found a solution to set the color for a line chart here: $oOutline = new…
Scheißy
  • 11
  • 2
1
vote
1 answer

Failed to Open Stream /vendor/phpoffice/phppresenation/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php

Attempting to run an API with PHP PowerPoint generation by inclusion of a script with an auto loader pointing to my vendor directory under a custom /api/libraries/PhpPresentation directory results in a warning. Warning: …
Vahe
  • 1,699
  • 3
  • 25
  • 76
1
vote
0 answers

PHPPresentation lose styling when we copy from particular path and saving new pptx

I have search around google regarding PHPPresentation but nothing found. I know this type of question already asked (PHPOffice PHPPresentation lose original styling on saving pptx) and i have checked the answer of this particular question…
kunal
  • 4,122
  • 12
  • 40
  • 75
1
vote
3 answers

Phppresentation createRichTextShape -How to create a newline

I am using PphPresentation library to create powepoint presentations. I am trying to create a newline inside of textshape. This is part of the code $currentSlide=$objPHPPresentation->createSlide(); $textRun = $shape->createTextRun('Estado de…
Maurocrispin
  • 242
  • 2
  • 14
0
votes
0 answers

What are the 3 parameters of setAutoFit

I'm using PhpOffice\PhpPresentation to create a PowerPoint with PHP... so far so good. I'have created a shape and a textRun. The length of the text may vary and I try to understand how setAutoFit works. Using RichText::AUTOFIT_NORMAL as 1st…
Cedric Cholley
  • 1,956
  • 2
  • 9
  • 15
0
votes
0 answers

Installing PHPPresentation Codeigniter

Does someone successfully tried to install and integrate the PHPPresentation library in Codeigniter, tried it several times but got no luck. Here's my sample source code `// with Composer require_once APPPATH.'third_party/vendor/autoload.php'; …
1
2 3 4