Packages

 

com.aspose.imaging.imageoptions

Class PdfImageCompressionOptions

  • java.lang.Object
    • com.aspose.ms.System.ValueType<com.aspose.ms.System.Enum>
      • com.aspose.ms.System.Enum
        • com.aspose.imaging.imageoptions.PdfImageCompressionOptions


  • public final class PdfImageCompressionOptions
    extends com.aspose.ms.System.Enum

    Pdf image compression options

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.aspose.ms.System.Enum

        com.aspose.ms.System.Enum.AbstractEnum, com.aspose.ms.System.Enum.FlaggedEnum, com.aspose.ms.System.Enum.ObjectEnum, com.aspose.ms.System.Enum.SimpleEnum
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int Auto
      Automatically selects the most appropriate compression for each image.
      static int Ccitt3
      /CCITTFaxDecode/DecodeParms/K 0/Columns 173 Does not support transparency.
      static int Ccitt4
      /CCITTFaxDecode/DecodeParms/K -1/Columns 173 Does not support transparency.
      static int Flate
      Flate compression.
      static int Jpeg
      Jpeg compression.
      static int LzwBaselinePredictor
      Predictor selection is restricted to PNG Paeth predictor to speed-up the process.
      static int LzwOptimizedPredictor
      Predictor selection is more complicated and should result in smaller image sizes but taking more time.
      static int None
      Saves raw image bytes resulting in bigger pdf file sizes.
      static int Rle
      Run Length compression.
      • Fields inherited from class com.aspose.ms.System.Enum

        EnumSeparatorCharArray
    • Method Summary

      • Methods inherited from class com.aspose.ms.System.Enum

        Clone, CloneTo, format, format, get_Caption, get_Value, getName, getName, getNames, getNames, getNames, getUnderlyingType, getUnderlyingType, getValue, getValues, getValues, getValues, isDefined, isDefined, isDefined, isDefined, parse, parse, parse, parse, register, toObject, toString
    • Field Detail

      • Auto

        public static final int Auto

        Automatically selects the most appropriate compression for each image.

        See Also:
        Constant Field Values
      • None

        public static final int None

        Saves raw image bytes resulting in bigger pdf file sizes.

        See Also:
        Constant Field Values
      • LzwOptimizedPredictor

        public static final int LzwOptimizedPredictor

        Predictor selection is more complicated and should result in smaller image sizes but taking more time. RFC 2083 says it is the best way to go. But on the test data baseline predictor PdfImageCompressionOptions.LzwBaselinePredictor kicks ass leaving optimized predictor behing by 25-40% compression rate gains.

        See Also:
        Constant Field Values
      • Jpeg

        public static final int Jpeg

        Jpeg compression. Does not support transparency.

        See Also:
        Constant Field Values
      • Ccitt3

        public static final int Ccitt3

        /CCITTFaxDecode/DecodeParms/K 0/Columns 173 Does not support transparency.

        See Also:
        Constant Field Values
      • Ccitt4

        public static final int Ccitt4

        /CCITTFaxDecode/DecodeParms/K -1/Columns 173 Does not support transparency.

        See Also:
        Constant Field Values