Managing WordArt Properties in PHP

Aspose.Slides - Managing WordArt Properties

To Manage WordArt Properties using Aspose.Slides Java for PHP, simply invoke WordArt module. Here you can see example code.


 # Create an instance of Presentation class

$pres = new Presentation();

\# Get the first slide

$slide = $pres->getSlides()->get_Item(0);

\# Add an AutoShape of Rectangle type

$shapeType=new ShapeType();

$fillType=new FillType();

$ashp = $slide->getShapes()->addAutoShape($shapeType->Rectangle, 150, 75, 400, 300);


\# Add TextFrame to the Rectangle

$ashp->addTextFrame("Aspose TextBox");

$port = $ashp->getTextFrame()->getParagraphs()->get_Item(0)->getPortions()->get_Item(0);

$pf = $port->getPortionFormat();


\# Enable InnerShadowEffect

$ef = $pf->getEffectFormat();


\# Set all necessary parameters





\# Set ColorType as Scheme

$colorType=new ColorType();


\# Set Scheme Color

$schemeColor=new SchemeColor();


\# Write the presentation as a PPTX file

$save_format = new SaveFormat();

$pres->save($dataDir . "WordArt.pptx", $save_format->Pptx);

print "Done with word art, please check the output file.".PHP_EOL;

Download Running Code

Download Managing WordArt Properties (Aspose.Slides) from any of the below mentioned social coding sites: