We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Presentation - Notes Master

Hi,

I have a requirement where I would like to add a custom text box in the notes master which should be available in all the slides. And I should be able to read/write the text from the custom text box using Aspose.Slides? Is it possible to achieve this?

Nataraj

Hi Nataraj,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your interest in Aspose.Slides.

Please use the following code snippet that will help you in adding a text frame in master slide. The text frame will be visible in all slides and can be altered using Aspose.Slides for Java.

try

{

//Opening an exisiting presentation

Presentation pres = new Presentation(new FileInputStream("d:\\ppt\\asd.ppt"));

//Setting slide view type

pres.setSlideViewType(5);

//Access the main master

Slide masterSld = pres.getMainMaster();

//Creating a shape to add text frame

Rectangle rec=masterSld.getShapes().addRectangle(200,500,1500,600);

TextFrame tf=rec.addTextFrame("This is sample text");

//Creating a body slide

Slide sdd=pres.addBodySlide();

//Write presentation on disk

pres.write(new FileOutputStream("d:\\ppt\\output234.ppt"));

}

catch(Exception ex)

{

System.out.println(ex.toString());

}

Thanks and Regards,