Package slides.security

Source Code of slides.security.AsposeApplyPasswordProtection

package slides.security;

import com.aspose.slides.Presentation;

public class AsposeApplyPasswordProtection
{
  public static void main(String[] args)
  {
    //Instantiate a Presentation object that represents a PPT file
    Presentation pres = new Presentation();

    //....do some work here.....

    //Setting Password
    pres.getProtectionManager().encrypt("pass");

    //Save your presentation to a file
    pres.save("data/AsposeProtection.pptx", com.aspose.slides.SaveFormat.Pptx);
     
      //Printing the status
      System.out.println("Protection Applied successfully!");
  }
}
TOP

Related Classes of slides.security.AsposeApplyPasswordProtection

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.