Class Compress_Api


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

      • Compress_Api

        public Compress_Api()
    • Method Detail

      • compressImages

        public static void compressImages​(InternalPdfDocument internalPdfDocument,
                                          int quality,
                                          boolean scaleToVisibleSize)
        Compress existing images using JPG encoding and the specified settings
        Parameters:
        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.
      • compressStructTree

        public static void compressStructTree​(InternalPdfDocument internalPdfDocument)