This project is read-only.

How to give border to text shape?

Dec 13, 2010 at 8:26 AM

I couldn't find a way to add border to the shape. Please help.

Dec 13, 2010 at 9:50 AM

I had a similar problem, I just ended up using a table tbh.  Quicker and simpler plus you can set background color as well which was my requirement at the time.


Dec 13, 2010 at 10:18 AM


I setup the alignment like $shape->getAlignment()->setHorizontal( PHPPowerPoint_Style_Alignment::HORIZONTAL_CENTER );

This is mentioned in the example files.

How do I setup the background color?

Dec 13, 2010 at 10:28 AM

I did the fill on a row, just quickly grabbed my code as follows:

                        ->setStartColor(new PHPPowerPoint_Style_Color($bgcolor1))
                        ->setEndColor(new PHPPowerPoint_Style_Color($bgcolor2));

I take it the alignment didn't work for you?  Try this:

$shape->getActiveParagraph()->getAlignment()->setHorizontal( PHPPowerPoint_Style_Alignment::HORIZONTAL_CENTER );



Aug 12, 2013 at 11:17 AM

Guys, No one tell about the answer for topic ( How to give border to text shape? ). Pleas help me on this. Its requirement for me.