OptimizationOptions.h
1 #pragma once
2 // Copyright (c) 2001-2022 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/object.h>
5 #include <cstdint>
6 
7 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
8 
9 namespace Aspose
10 {
11 namespace Pdf
12 {
13 namespace Optimization
14 {
15 class ImageCompressionOptions;
16 enum class ImageEncoding;
17 } // namespace Optimization
18 } // namespace Pdf
19 } // namespace Aspose
20 
21 namespace Aspose {
22 
23 namespace Pdf {
24 
25 namespace Optimization {
26 
31 class ASPOSE_PDF_SHARED_CLASS OptimizationOptions : public System::Object
32 {
34  typedef System::Object BaseType;
35 
36  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
37  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
38 
39 public:
40 
45  ASPOSE_PDF_SHARED_API bool get_LinkDuplcateStreams() const;
50  ASPOSE_PDF_SHARED_API void set_LinkDuplcateStreams(bool value);
54  ASPOSE_PDF_SHARED_API bool get_AllowReusePageContent() const;
58  ASPOSE_PDF_SHARED_API void set_AllowReusePageContent(bool value);
63  ASPOSE_PDF_SHARED_API bool get_RemoveUnusedStreams() const;
68  ASPOSE_PDF_SHARED_API void set_RemoveUnusedStreams(bool value);
72  ASPOSE_PDF_SHARED_API bool get_RemoveUnusedObjects() const;
76  ASPOSE_PDF_SHARED_API void set_RemoveUnusedObjects(bool value);
80  ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Optimization::ImageCompressionOptions> get_ImageCompressionOptions() const;
85  ASPOSE_PDF_SHARED_API bool get_CompressImages();
90  ASPOSE_PDF_SHARED_API void set_CompressImages(bool value);
95  ASPOSE_PDF_SHARED_API bool get_ResizeImages();
100  ASPOSE_PDF_SHARED_API void set_ResizeImages(bool value);
105  ASPOSE_PDF_SHARED_API int32_t get_ImageQuality();
110  ASPOSE_PDF_SHARED_API void set_ImageQuality(int32_t value);
115  ASPOSE_PDF_SHARED_API int32_t get_MaxResoultion();
120  ASPOSE_PDF_SHARED_API void set_MaxResoultion(int32_t value);
124  ASPOSE_PDF_SHARED_API bool get_UnembedFonts() const;
128  ASPOSE_PDF_SHARED_API void set_UnembedFonts(bool value);
132  ASPOSE_PDF_SHARED_API bool get_SubsetFonts() const;
136  ASPOSE_PDF_SHARED_API void set_SubsetFonts(bool value);
140  ASPOSE_PDF_SHARED_API bool get_RemovePrivateInfo() const;
144  ASPOSE_PDF_SHARED_API void set_RemovePrivateInfo(bool value);
148  ASPOSE_PDF_SHARED_API Aspose::Pdf::Optimization::ImageEncoding get_ImageEncoding() const;
152  ASPOSE_PDF_SHARED_API void set_ImageEncoding(Aspose::Pdf::Optimization::ImageEncoding value);
153 
160  static ASPOSE_PDF_SHARED_API System::SharedPtr<OptimizationOptions> All();
161 
162  ASPOSE_PDF_SHARED_API OptimizationOptions();
163 
164 protected:
165 
166  #ifdef ASPOSE_GET_SHARED_MEMBERS
167  ASPOSE_PDF_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
168  #endif
169 
170 
171 private:
172 
173  bool _linkDuplicateStreams;
174  bool _removeUnusedStreams;
175  bool _removeUnusedObjects;
176  bool _unembedFonts;
177  bool _subsetFonts;
178  bool _allowReusePageContents;
179  bool _removePrivateInfo;
182 
183 };
184 
185 } // namespace Optimization
186 } // namespace Pdf
187 } // namespace Aspose
188 
189 
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
All sides borders.It has the same meaning when useing "Box" and will be replaced by "Box" one year la...
Definition: reflection.h:29
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Class which describes document optimization algorithm. Instance of this class may be used as paramete...
Definition: OptimizationOptions.h:31
Definition: AFRelationship.h:4
ImageEncoding
Image encoding types.
Definition: ImageEncoding.h:13
Whole PDF file will be submitted.