com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class Document.OptimizationOptions

  • Enclosing class:
    Document

    Deprecated. 
    This class is obsolete. Please use com.aspose.pdf.optimization.OptimizationOptions instead.

    @Deprecated
    public static class Document.OptimizationOptions
    extends OptimizationOptions

    Class which describes document optimization algorithm. Instance of this class may be used as parameter of OptimizeResources() method.

    • Constructor Detail

      • OptimizationOptions

        public OptimizationOptions()
        Deprecated. 
    • Method Detail

      • all

        public static Document.OptimizationOptions all()
        Deprecated. 

        Creates optimization strategy will all options activated.

        Returns:
        OptimizationOptions object.
      • getResolution

        public int getResolution()
        Deprecated. 

        Specifies new image dpi when CompressIamges flag is used.

        Returns:
        image resolution
      • setResolution

        public void setResolution(int dpi)
        Deprecated. 

        Specifies new image dpi when CompressIamges flag is used.

        Parameters:
        dpi - image resolution
      • getMaximumImageDimension

        public int getMaximumImageDimension()
        Deprecated. 

        Specifies maximum image dimension. If the image width or height of the existing image is greater than this value - the image size will be proportionally reduced.

        Returns:
        image maximum dimension
      • setMaximumImageDimension

        public void setMaximumImageDimension(int dimension)
        Deprecated. 

        Specifies maximum image dimension. If the image width or height of the existing image is greater than this value - the image size will be proportionally reduced.

        Parameters:
        dimension - image maximum dimension