Hi Daniel,
I don't know what is PowerpointUtils.license in your application. However, i tested an approach that works and may be useful to you. Here is the approach:
static License lic;
public static void setPPTProps()
{
setLicProps();
Presentation pres=new Presentation();
Slide sld= pres.addTitleSlide();
TextHolder thld=(TextHolder)sld.getPlaceholders().get(0);
TextHolder thld1=(TextHolder)sld.getPlaceholders().get(1);
thld.setText("Click to add title");
thld1.setText("Click to add subtitlle");
pres.write("d:\\ppt\\titlePRES6.ppt");
}
public static void setLicProps()
{
FileInputStream fin;
try {
fin = new FileInputStream("d:\\Aspose.Total.Java.lic");
lic=new License();
lic.setLicense(fin);
} catch (AsposeLicenseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}