How to Apply & Remove Protection from PPTX Presentations in Android Apps
Join the DZone community and get the full member experience.Join For Free
This technical tip explains how Android developers can apply protection to presentation inside Android applications using Aspose.Slides for Android. A common use for Aspose.Slides for Android is to create, update and save Microsoft PowerPoint 2007 (PPTX) presentations as part of an automated workflow. Users of the application that uses Aspose.Slides this way get access to the output presentations. Protecting them from editing is a common concern. It is important that auto-generated presentations retain their original formatting and content. This article explains how presentations and slides are constructed and how Aspose.Slides for Android can apply protection to a presentation so that it cannot be edited. This feature is unique to Aspose.Slides and, at the time of writing, is not available in Microsoft PowerPoint. It gives developers a way of controlling how the presentations their applications create are used. A PPTX slide is composed of a number of components like auto shapes, tables, OLE objects, grouped shapes, picture frames, video frames, connectors and the various other elements available to build up a presentation. In Aspose.Slides for Android, each element on a slide is turned into a ShapeEx object. In other words, each element on the slide is either a ShapeEx object or an object derived from the ShapeEx object.
//Applying Protection on a PPTX Shapes //[Android] //Open the desired presentation PresentationEx pTemplate = new PresentationEx("AddingSlides.pptx"); //Slide object for holding temporary slides SlideEx slide; //Shape object for holding temporary shapes ShapeEx shape; //Traversing through all the slides in presentation for(int slCount=0;slCount
Opinions expressed by DZone contributors are their own.