Class Compress_Api
java.lang.Object
com.ironsoftware.ironpdf.internal.staticapi.Compress_Api
The type Compress api.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
compressImages
(InternalPdfDocument internalPdfDocument, int quality, boolean scaleToVisibleSize) Compress existing images using JPG encoding and the specified settings
-
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- Parameters:
internalPdfDocument
- the internal pdf documentquality
- (1 - 100) to use during compressionscaleToVisibleSize
- Scale down the image resolution according to its visible size in the PDF document; may cause distortion with some image configurations. Default is false.
-