com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class Compress

  • java.lang.Object
    • com.aspose.slides.Compress


  • public class Compress
    extends java.lang.Object

    Represents a group of methods intended to compress Presentation.


     
     Presentation pres = new Presentation("pres.pptx");
     try {
         Compress.removeUnusedMasterSlides(pres);
    
         pres.save("pres-out.pptx", SaveFormat.Pptx);
     } finally {
         if (pres != null) pres.dispose();
     }
     
    • Constructor Detail

      • Compress

        public Compress()
    • Method Detail

      • removeUnusedMasterSlides

        public static void removeUnusedMasterSlides(Presentation pres)

        Makes compression of the Presentation by removing unused master slides.


         
         Presentation pres = new Presentation("pres.pptx");
         try {
             Compress.removeUnusedMasterSlides(pres);
        
             pres.save("pres-out.pptx", SaveFormat.Pptx);
         } finally {
             if (pres != null) pres.dispose();
         }
         
        Parameters:
        pres - The presentation instance
      • removeUnusedLayoutSlides

        public static void removeUnusedLayoutSlides(Presentation pres)

        Makes compression of the Presentation by removing unused layout slides.


         
         Presentation pres = new Presentation("pres.pptx");
         try {
             Compress.removeUnusedLayoutSlides(pres);
        
             pres.save("pres-out.pptx", SaveFormat.Pptx);
         } finally {
             if (pres != null) pres.dispose();
         }
         
        Parameters:
        pres - The presentation instance