Aspose::Pdf::Optimization::OptimizationOptions class

OptimizationOptions class

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

class OptimizationOptions : public System::Object

Methods

MethodDescription
static All()Creates optimization strategy will all options activated. Please note that activated only options which does not change any functionality of the document. I.e. image compressing and fonts unembedding will not enabled (and can be embedded manually).
get_AllowReusePageContent() constIf true page contents will be reused when document is optimized for equal pages.
get_CompressImages()If this flag is set to true images will be compressed in the document. compression level is specfied with ImageQuality property.
get_CompressObjects() constIf this flag is set to true

, Pdf objects will be packed into Objest Streams and compressed to reduce pdf file size. | | get_ImageCompressionOptions() const | Set of options which describe will images in the document be compressed and parameters of the compression. | | get_ImageEncoding() const | Image encodre which will be used. | | get_ImageQuality() | Specifies level of image compression when CompressIamges flag is used. | | get_LinkDuplcateStreams() const | 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). | | get_MaxResoultion() | Specifies maximum resolution of images. If image has higher resolition it will be scaled. | | get_RemovePrivateInfo() const | Remove private information (page piece info). | | get_RemoveUnusedObjects() const | 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. | | get_RemoveUnusedStreams() const | 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. | | get_ResizeImages() | If this flag set to true and CompressImages is true images will be resized if image resoultion is greater then specified MaxResolution parameter. | | get_SubsetFonts() const | Fonts will be converted into subsets if set to true. | | get_UnembedFonts() const | Make fonts not embedded if set to true. | | OptimizationOptions() | | | set_AllowReusePageContent(bool) | If true page contents will be reused when document is optimized for equal pages. | | set_CompressImages(bool) | If this flag is set to true images will be compressed in the document. compression level is specfied with ImageQuality property. | | set_CompressObjects(bool) | If this flag is set to true

, Pdf objects will be packed into Objest Streams and compressed to reduce pdf file size. | | set_ImageEncoding(Aspose::Pdf::Optimization::ImageEncoding) | Image encodre which will be used. | | set_ImageQuality(int32_t) | Specifies level of image compression when CompressIamges flag is used. | | set_LinkDuplcateStreams(bool) | 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). | | set_MaxResoultion(int32_t) | Specifies maximum resolution of images. If image has higher resolition it will be scaled. | | set_RemovePrivateInfo(bool) | Remove private information (page piece info). | | set_RemoveUnusedObjects(bool) | 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. | | set_RemoveUnusedStreams(bool) | 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. | | set_ResizeImages(bool) | If this flag set to true and CompressImages is true images will be resized if image resoultion is greater then specified MaxResolution parameter. | | set_SubsetFonts(bool) | Fonts will be converted into subsets if set to true. | | set_UnembedFonts(bool) | Make fonts not embedded if set to true. |

See Also