Enum Class PdfOptimizer.Optimization

java.lang.Object
java.lang.Enum<PdfOptimizer.Optimization>
org.jpedal.tools.PdfOptimizer.Optimization
All Implemented Interfaces:
Serializable, Comparable<PdfOptimizer.Optimization>, Constable
Enclosing class:
PdfOptimizer

public static enum PdfOptimizer.Optimization extends Enum<PdfOptimizer.Optimization>
Optimizations that can be applied to a PDF. On the command line each is passed by name, prefixed with --.
  • Enum Constant Details

    • REMOVEUNUSEDOBJECTS

      public static final PdfOptimizer.Optimization REMOVEUNUSEDOBJECTS
      Remove any unused object from the PDF and flag the objects as free in the files xref table.
    • LINEARIZE

      public static final PdfOptimizer.Optimization LINEARIZE
      Linearise the document after completing all other optimizations.
  • Method Details

    • values

      public static PdfOptimizer.Optimization[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PdfOptimizer.Optimization valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null