PdfOptimizationOptions

Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.ValueObject

All Implemented Interfaces: java.io.Serializable

public final class PdfOptimizationOptions extends ValueObject implements Serializable

Defines Pdf optimization options.

Constructors

Constructor Description
PdfOptimizationOptions() Initializes new instance of PdfOptimizationOptions class.

Methods

Method Description
getLinkDuplicateStreams() Link duplicate streams
setLinkDuplicateStreams(boolean value) Link duplicate streams
getRemoveUnusedObjects() Remove unused objects
setRemoveUnusedObjects(boolean value) Remove unused objects
getRemoveUnusedStreams() Remove unused streams
setRemoveUnusedStreams(boolean value) Remove unused streams
getCompressImages() If CompressImages set to true , all images in the document are recompressed.
setCompressImages(boolean value) If CompressImages set to true , all images in the document are recompressed.
getImageQuality() Value in percent where 100% is unchanged quality and image size.
setImageQuality(int value) Value in percent where 100% is unchanged quality and image size.
getUnembedFonts() Make fonts not embedded if set to true
setUnembedFonts(boolean value) Make fonts not embedded if set to true
getFontSubsetStrategy()
setFontSubsetStrategy(PdfFontSubsetStrategy fontSubsetStrategy) Set font subset strategy

PdfOptimizationOptions()

public PdfOptimizationOptions()

Initializes new instance of PdfOptimizationOptions class.

getLinkDuplicateStreams()

public final boolean getLinkDuplicateStreams()

Link duplicate streams

Returns: boolean

setLinkDuplicateStreams(boolean value)

public final void setLinkDuplicateStreams(boolean value)

Link duplicate streams

Parameters:

Parameter Type Description
value boolean

getRemoveUnusedObjects()

public final boolean getRemoveUnusedObjects()

Remove unused objects

Returns: boolean

setRemoveUnusedObjects(boolean value)

public final void setRemoveUnusedObjects(boolean value)

Remove unused objects

Parameters:

Parameter Type Description
value boolean

getRemoveUnusedStreams()

public final boolean getRemoveUnusedStreams()

Remove unused streams

Returns: boolean

setRemoveUnusedStreams(boolean value)

public final void setRemoveUnusedStreams(boolean value)

Remove unused streams

Parameters:

Parameter Type Description
value boolean

getCompressImages()

public final boolean getCompressImages()

If CompressImages set to true , all images in the document are recompressed. The compression is defined by the ImageQuality property.

Returns: boolean

setCompressImages(boolean value)

public final void setCompressImages(boolean value)

If CompressImages set to true , all images in the document are recompressed. The compression is defined by the ImageQuality property.

Parameters:

Parameter Type Description
value boolean

getImageQuality()

public final int getImageQuality()

Value in percent where 100% is unchanged quality and image size. To decrease the image size set this property to less than 100

Returns: int

setImageQuality(int value)

public final void setImageQuality(int value)

Value in percent where 100% is unchanged quality and image size. To decrease the image size set this property to less than 100

Parameters:

Parameter Type Description
value int

getUnembedFonts()

public final boolean getUnembedFonts()

Make fonts not embedded if set to true

Returns: boolean

setUnembedFonts(boolean value)

public final void setUnembedFonts(boolean value)

Make fonts not embedded if set to true

Parameters:

Parameter Type Description
value boolean

getFontSubsetStrategy()

public PdfFontSubsetStrategy getFontSubsetStrategy()

Returns: PdfFontSubsetStrategy

setFontSubsetStrategy(PdfFontSubsetStrategy fontSubsetStrategy)

public void setFontSubsetStrategy(PdfFontSubsetStrategy fontSubsetStrategy)

Set font subset strategy

Parameters:

Parameter Type Description
fontSubsetStrategy PdfFontSubsetStrategy