Compress

Inheritance: java.lang.Object

public class Compress

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();
 }

Constructors

ConstructorDescription
Compress()

Methods

MethodDescription
removeUnusedMasterSlides(Presentation pres)Makes compression of the Presentation by removing unused master slides.
removeUnusedLayoutSlides(Presentation pres)Makes compression of the Presentation by removing unused layout slides.
compressEmbeddedFonts(Presentation pres)Makes compression of the Presentation by removing unused characters from embedded fonts.

Compress()

public Compress()

removeUnusedMasterSlides(Presentation pres)

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:

ParameterTypeDescription
presPresentationThe presentation instance

removeUnusedLayoutSlides(Presentation pres)

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:

ParameterTypeDescription
presPresentationThe presentation instance

compressEmbeddedFonts(Presentation pres)

public static void compressEmbeddedFonts(Presentation pres)

Makes compression of the Presentation by removing unused characters from embedded fonts.


Presentation pres = new Presentation("pres.pptx");
 try {
     Compress.compressEmbeddedFonts(pres);

     pres.save("pres-out.pptx", SaveFormat.Pptx);
 } finally {
     if (pres != null) pres.dispose();
 }

Parameters:

ParameterTypeDescription
presPresentationThe presentation instance