I am using phppowerpoint to generate ppt files. I want to change default line height between lines in PPT.
here is bit of code I am using to generate ppt.
$shape->createParagraph()->getAlignment()->setHorizontal(PHPPowerPoint_Style_Alignment::HORIZONTAL_LEFT)->setVertical(PHPPowerPoint_Style_Alignment::VERTICAL_TOP);
$textRun = $shape->createTextRun($ppt_build[$i][$k]['text'][$j]['textrun']);
$textRun->getFont()->setBold($ppt_build[$i][$k]['text'][$j]['bold']);
$textRun->getFont()->setSize($ppt_build[$i][$k]['text'][$j]['size']); //setName
$textRun->getFont()->setName($ppt_build[$i][$k]['text'][$j]['name']); //setName
$textRun->getFont()->setColor(new PHPPowerPoint_Style_Color($ppt_build[$i][$k]['text'][$j]['color']));
then creating a line break
$shape->createBreak();
I tried using giving 2 line breaks but it is more than I need.
I also tried solution mentioned here
http://phppowerpoint.codeplex.com/discussions/273396
But with that solution it adds space only before and after the paragraph.
is there any cheat sheet or list that contains xml nodes/elements/names used in xml files generated for powerpoint
follow below steps to achieve this
Inside /* /powerpoint/PHPPowerPoint/Shape/RichText/Paragraph.php */
also
Then inside /PHPPowerPoint/Writer/PowerPoint2007/Slide.php
after
add