Document.OptimizationOptions

Inheritance: java.lang.Object, com.aspose.pdf.optimization.OptimizationOptions

public static class Document.OptimizationOptions extends OptimizationOptions

Class which describes document optimization algorithm. Instance of this class may be used as parameter of OptimizeResources() method.

Constructors

ConstructorDescription
OptimizationOptions()

Methods

MethodDescription
all()Creates optimization strategy will all options activated.
getResolution()Specifies new image dpi when CompressIamges flag is used.
setResolution(int dpi)Specifies new image dpi when CompressIamges flag is used.
getMaximumImageDimension()Specifies maximum image dimension.
setMaximumImageDimension(int dimension)Specifies maximum image dimension.

OptimizationOptions()

public OptimizationOptions()

all()

public static Document.OptimizationOptions all()

Creates optimization strategy will all options activated.

Returns: OptimizationOptions - OptimizationOptions object.

getResolution()

public int getResolution()

Specifies new image dpi when CompressIamges flag is used.

Returns: int - image resolution

setResolution(int dpi)

public void setResolution(int dpi)

Specifies new image dpi when CompressIamges flag is used.

Parameters:

ParameterTypeDescription
dpiintimage resolution

getMaximumImageDimension()

public int getMaximumImageDimension()

Specifies maximum image dimension. If the image width or height of the existing image is greater than this value - the image size will be proportionally reduced.

Returns: int - image maximum dimension

setMaximumImageDimension(int dimension)

public void setMaximumImageDimension(int dimension)

Specifies maximum image dimension. If the image width or height of the existing image is greater than this value - the image size will be proportionally reduced.

Parameters:

ParameterTypeDescription
dimensionintimage maximum dimension