ImageCompression Class
class ImageCompression(compressionRate: Float) : ScanningSdkLibrary.Instance
How page images are compressed inside the PDF, trading file size against fidelity.
A greyscale page at a rate of 1 or below is stored losslessly. Anything else in colour or greyscale is encoded as JPEG 2000 at this rate, where a higher number compresses harder. Monochrome pages ignore the rate entirely — they are always JBIG2.
Parameters
- compressionRate — how hard to compress colour and greyscale pages.
Constructors
ImageCompression
constructor(compressionRate: Float)
Types
Companion
object Companion
Defaults for PDF output.
Functions
close
@Synchronized open override fun close()
Releases the native memory held by this instance immediately instead of waiting for the garbage collector.