How to give border to text shape?

Dec 13, 2010 at 7:26 AM

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

Dec 13, 2010 at 8: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.

S

Dec 13, 2010 at 9:18 AM

Hi,

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 9:28 AM

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

$row->getFill()->setFillType(PHPPowerPoint_Style_Fill::FILL_GRADIENT_LINEAR)
                        ->setRotation(90)
                        ->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 );

S

 

Aug 12, 2013 at 10:17 AM
Hi,

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.