I've purchased a licence for Slides - but I still have the watermark on all generated presentations.
the code I'm using is:
//Instantiate a Presentation object that represents a PPT file $pres=&new Java("com.aspose.slides.Presentation");
$fistream=&new Java("java.io.FileInputStream","$javaPath" . "Aspose Slides.lic"); // Create a License object $license=new Java("com.aspose.slides.License"); //Set the license of Aspose.Slides to avoid the evaluation limitations $license->setLicense($fistream);
It seems, you are getting this problem because you are creating Presentation object before setting the license. You should set the license before doing any operation using Aspose.Slides to avoid evaluation watermarks.
$fistream =& new Java("java.io.FileInputStream","$javaPath" . "Aspose Slides.lic"); // Create a License object $license =& new Java("com.aspose.slides.License"); //Set the license of Aspose.Slides to avoid the evaluation limitations $license->setLicense($fistream);
//Instantiate a Presentation object that represents a PPT file $pres =& new Java("com.aspose.slides.Presentation");
For working example, please see Aspose.Slides Wiki. It is very useful for new users. There is also one licensing section for setting license in Java and PHP.