public final class PdfOptimizationOptions extends ValueObject implements Serializable
Defines Pdf optimization options.
| Constructor and Description |
|---|
PdfOptimizationOptions()
Initializes new instance of
PdfOptimizationOptions class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCompressImages()
If CompressImages set to
true, all images in the document are recompressed. |
protected List<Object> |
getEqualityComponents()
Gets equality components.
|
com.groupdocs.conversion.options.convert.PdfFontSubsetStrategy |
getFontSubsetStrategy() |
int |
getImageQuality()
Value in percent where 100% is unchanged quality and image size.
|
boolean |
getLinkDuplicateStreams()
Link duplicate streams
|
boolean |
getRemoveUnusedObjects()
Remove unused objects
|
boolean |
getRemoveUnusedStreams()
Remove unused streams
|
boolean |
getUnembedFonts()
Make fonts not embedded if set to true
|
void |
setCompressImages(boolean value)
If CompressImages set to
true, all images in the document are recompressed. |
void |
setFontSubsetStrategy(com.groupdocs.conversion.options.convert.PdfFontSubsetStrategy fontSubsetStrategy)
Set font subset strategy
|
void |
setImageQuality(int value)
Value in percent where 100% is unchanged quality and image size.
|
void |
setLinkDuplicateStreams(boolean value)
Link duplicate streams
|
void |
setRemoveUnusedObjects(boolean value)
Remove unused objects
|
void |
setRemoveUnusedStreams(boolean value)
Remove unused streams
|
void |
setUnembedFonts(boolean value)
Make fonts not embedded if set to true
|
equals, equals, hashCode, op_Equality, op_Inequalitypublic PdfOptimizationOptions()
Initializes new instance of PdfOptimizationOptions class.
public final boolean getCompressImages()
If CompressImages set to true, all images in the document are recompressed. The compression is defined by the ImageQuality property.
protected List<Object> getEqualityComponents()
ValueObjectGets equality components.
getEqualityComponents in class ValueObjectpublic com.groupdocs.conversion.options.convert.PdfFontSubsetStrategy getFontSubsetStrategy()
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
public final boolean getLinkDuplicateStreams()
Link duplicate streams
public final boolean getRemoveUnusedObjects()
Remove unused objects
public final boolean getRemoveUnusedStreams()
Remove unused streams
public final boolean getUnembedFonts()
Make fonts not embedded if set to true
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.
public void setFontSubsetStrategy(com.groupdocs.conversion.options.convert.PdfFontSubsetStrategy fontSubsetStrategy)
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
public final void setLinkDuplicateStreams(boolean value)
Link duplicate streams
public final void setRemoveUnusedObjects(boolean value)
Remove unused objects
public final void setRemoveUnusedStreams(boolean value)
Remove unused streams
public final void setUnembedFonts(boolean value)
Make fonts not embedded if set to true
Copyright © 2024. All rights reserved.