com.adobe.pdfservices.operation.pdfjobs.params.compresspdf.CompressionLevel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pdfservices-sdk Show documentation
Show all versions of pdfservices-sdk Show documentation
Adobe PDF Services SDK allows you to access RESTful APIs to create, convert, and manipulate PDFs within your applications.
Older versions can be found under groupId: com.adobe.documentservices, artifactId: pdftools-sdk
/*
* Copyright 2024 Adobe
* All Rights Reserved.
*
* NOTICE: Adobe permits you to use, modify, and distribute this file in
* accordance with the terms of the Adobe license agreement accompanying
* it. If you have received this file from a source other than Adobe,
* then your use, modification, or distribution of it requires the prior
* written permission of Adobe.
*/
package com.adobe.pdfservices.operation.pdfjobs.params.compresspdf;
import com.adobe.pdfservices.operation.pdfjobs.jobs.CompressPDFJob;
/**
* Supported compression levels for {@link CompressPDFJob}
*/
public enum CompressionLevel {
/**
* Reduces the file size of pdf by reducing resolution of the coloured and grayscale images above 100 dpi to 72
* dpi (dots per inch).
* This option uses JPEG medium quality compression.
* Output pdf will not contain hidden layers, document structure, metadata, javascript, user properties and print
* settings.
*/
HIGH("HIGH"),
/**
* Reduces the file size of pdf by reducing resolution of the coloured and grayscale images above 200 dpi to 144
* dpi (dots per inch).
* This option uses JP2K medium quality compression.
*/
MEDIUM("MEDIUM"),
/**
* Reduces the file size of pdf by reducing resolution of the coloured and grayscale images above 250 dpi to 200
* dpi (dots per inch).
* This option uses JP2K high quality compression.
*/
LOW("LOW");
private final String compressionLevel;
/**
* Constructs Compression Level from its string representation
*
* @param compressionLevel String representation
*/
CompressionLevel(String compressionLevel) {
this.compressionLevel = compressionLevel;
}
/**
* Returns the string representation of this CompressionLevel
*
* @return String representation of this CompressionLevel
*/
public String getCompressionLevel() {
return compressionLevel;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy