Free Support Forum - aspose.com

How to Modify the text of a slide?

Hi I am using the trial version of ASPOSE.

I am using the following piece of Code:

Presentation pr = new Presentation();

Slide slide = pr.getSlideByPosition(1);

System.out.println("Name of slide is " + slide.getName());

//slide.get

System.out.println("Slide is >> " + slide);

slide.setName("YPTest");

FileInputStream input = new FileInputStream("E:\\PRESENTATION\\Folders\\chartImage.png");

Picture pic = new Picture(pr,input);

int picid = pr.getPictures().add(pic);

Shapes shapes = slide.getShapes();

System.out.println("Size of Shape is >>> " + shapes.size());

PictureFrame picFrame = shapes.addPictureFrame(picid, 1000, 1000, 3000, 3000);

picFrame.setName("TestFrame");

Rectangle rect = shapes.addRectangle(2000, 4000, 10 ,10);

rect.addTextFrame("YP");

System.out.println("Size of shapes is " + shapes.size());

OutputStream out = new FileOutputStream("E:\\ASPOSE\\testSlide1.ppt");

pr.write(out);

out.close();

The slide I get is shown in attachmetnt.

I want to remove the default text appearing below :

Evaluation only.
Created with Aspose.PowerPoint.
Copyright 2004 Aspose Pty Ltd.

How Can I do that?

Regards,

Yashaswi

Hello Yashaswi.

To remove this text you should buy a license.