Class Compress_Api


public final class Compress_Api extends Object
The type Compress api.
  • Constructor Details

    • Compress_Api

      public Compress_Api()
  • Method Details

    • compressImages

      public static void compressImages(InternalPdfDocument internalPdfDocument, int quality, boolean scaleToVisibleSize)
      Compress existing images using JPG encoding and the specified settings
      internalPdfDocument - the internal pdf document
      quality - (1 - 100) to use during compression
      scaleToVisibleSize - Scale down the image resolution according to its visible size in the PDF document; may cause distortion with some image configurations. Default is false.