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
0
votes
0 answers

How can I replace the text in a .pptx file with the phppresentation library?

I try to replace the text with another one with the phppresentation library, but it replaced my text in my file with empty $text_element_v->setText($new_text); Here is my code: $pptx = 'test/example.pptx'; if (!file_exists('lorem.pptx')) { …
savegramer
  • 21
  • 5
0
votes
0 answers

PHPOffice/PHPPresentation (PowerPoint) Chart: both outline setWidth and gridline setWidth methods are not working

By following the documentation I try to change width of Y axis gridlines and outline. First I create series: $series = new Chart\Series($label,…
Vlado
  • 3,517
  • 2
  • 26
  • 24
0
votes
0 answers

PHPOffice/PHPPresentation (PowerPoint) Chart (createChartShape) how to access and change font size and color of axis labels?

In PHPOffice/PHPPresentation chart shape I need to change color and font size of labels on X and Y axis like for example here: https://jsfiddle.net/462gxdn3/ xAxis->labels->style->color:'#0000FF' xAxis->labels->style->fontSize: 15 This changes font…
Vlado
  • 3,517
  • 2
  • 26
  • 24
0
votes
0 answers

PHPOffice/PHPPresentation (PowerPoint) - how to prevent paragraph text from wrapping to a new line when in a table cell? Is there a dedicated method?

Inside a table cell I have a text - a number in fact but with space thousands separators like: 123 456 789 This data is dynamic and the value can vary a lot. I need a method to prevent this number from wrapping to a new line inside cell like: 123…
Vlado
  • 3,517
  • 2
  • 26
  • 24
0
votes
1 answer

PHPOffice/PHPPresentation (PowerPoint): how to use setDisplayBlankAs() Chart method?

I tried to use setDisplayBlankAs() method as shown in documentation at: https://phpoffice.github.io/PHPPresentation/usage/shapes/chart.html#customization but I got an error: PhpOffice\PhpPresentation\Shape\Chart\Type\Line::setDisplayBlankAs()…
Vlado
  • 3,517
  • 2
  • 26
  • 24
0
votes
0 answers

419 Page expired even when I input wrong password in production mode shared hosting Cpanel

I have tried everything I know cache:clear, config:clear database sessions etc. But in development mode, it works fine, but in production, it doesn't. Any…
0
votes
0 answers

how to access constant variable of a class using string in phppresentation

i want to access const LINE_DOUBLE variable in a class using this "LINE_DOUBLE" string name ANY BEST SOLUTION
vaibhav
  • 16
  • 4
0
votes
1 answer

phppresentation overflowing table problem

Table going outside the slide As the cell heigth increases the table height increases and makes the table go outside the slide thus i want the table to get divided and the part which is outside to come in the next slide Suppose the 3 rd row is…
0
votes
1 answer

PhpOffice-PhpPresentation : Row height issue on creating PPT with tables

I am writing code on PHP for creating a PPT document. In this, I am showing data in table format all is good except for one issue. For the large string in a cell height of the row is resizing automatically while I set 40px height at the time of row…
Surya prakash Patel
  • 1,512
  • 2
  • 24
  • 38
0
votes
1 answer

Style & content is missing in when create pptx from existing pptx using PHPPresentation

I am using this below code to load a pptx file & saving into a new pptx. My code is simple. But style is broken in new pptx file. can anyone kindly help ?
Rockers Niloy
  • 101
  • 2
  • 12
0
votes
1 answer

PHPPresentation Adding Text After Using setColSpan() Doesn't Work

I'm try to add text following a colspan column and nothing I've tried has worked. Here is what I have tried so far. // Create a shape (table) $tableShape =…
user752746
  • 617
  • 9
  • 31
0
votes
1 answer

How to add two images per slide from mysql (PHP Presentation)?

I am trying to make simple presentation with two images per slide but I don't know how to put 2 images per slide. All images goes to one slide. This is how it looks This is what I want Could you please help me with this. This is my code: (THIS…
0
votes
1 answer

Duplicate Slide in PHPPresentation

Can't find any information on this feature on the github repo or stackoverflow. Does anyone know if you can duplicate a slide with various shapes (charts, tables, textboxes etc) using PHPPresentation? If this is possible, as there any limitations?…
Boosted_d16
  • 13,340
  • 35
  • 98
  • 158
0
votes
0 answers

Reading and Replacing Text Using PhpPresentation

I want to access a Word from A pptx file in laravel using php presentations I tried this but its not working.Kindly provide any input. $slides = $oPHPPresentation2->getSlide(7); $shape=$slides->getShapeCollection(); $paragraphs =…
0
votes
1 answer

Making specific words or bunch of words bold in phppresentation

How to make particular words or lines bold in paragraph using phppresentation. $textRun = $shape->createTextRun('Your content is centered around promotion of events. While we encourage continuing this practice based on the strong results.'); …
Santosh Jagtap
  • 995
  • 8
  • 17