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

Namespace: Aspose.Pdf.Optimization
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.9
Syntax
public class OptimizationOptions

The OptimizationOptions type exposes the following members.

Constructors
  NameDescription
Public methodOptimizationOptions
Initializes a new instance of the OptimizationOptions class
Properties
  NameDescription
Public propertyAllowReusePageContent
If true page contents will be reused when document is optimized for equal pages.
Public propertyCompressImages Obsolete.
If this flag is set to true images will be compressed in the document. compression level is specfied with ImageQuality property.
Public propertyImageCompressionOptions
Set of options which describe will images in the document be compressed and parameters of the compression.
Public propertyImageEncoding
Image encodre which will be used.
Public propertyImageQuality Obsolete.
Specifies level of image compression when CompressIamges flag is used.
Public propertyLinkDuplcateStreams
If this flag is set to true, Resource streams will be analyzed. If duplicate streams are found (i.e. if stream contents is equal), then thes streams will be stored as one object. This allows to decrease document size in some cases (for example, when same document was concatenedted multiple times).
Public propertyMaxResoultion
Specifies maximum resolution of images. If image has higher resolition it will be scaled
Public propertyRemovePrivateInfo
Remove private information (page piece info).
Public propertyRemoveUnusedObjects
If this flag is set to true, all document objects will be checked and unused objects (i.e. objects which does not have any reference) are removed from document.
Public propertyRemoveUnusedStreams
If this flag set to true, every resource is checked on it's usage. If resource is never used, then resources is removed. This may decrease document size for example when pages were extracted from document.
Public propertyResizeImages Obsolete.
If this flag set to true and CompressImages is true images will be resized if image resoultion is greater then specified MaxResolution parameter.
Public propertyUnembedFonts
Make fonts not embedded if set to true.
Methods
  NameDescription
Public methodStatic memberAll
Creates optimization strategy will all options activated.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also