Foxit PDF SDK

fs_ofdoptimize.h
1 #ifndef FS_OFD_OPTIMIZE_H_
2 #define FS_OFD_OPTIMIZE_H_
3
4 #include "common/fs_common.h"
5
11 namespace foxit {
15 namespace ofd {
17 class Optimize FS_FINAL : public CFX_Object {
18 public:
24 typedef enum _CompressCodecType {
26 e_CompressCodecTypeJPEG2000 = 0,
28 e_CompressCodecTypeJPEG = 1
29 } CompressCodecType;
30
31
40 static bool OfdOptimize(const String& input_ofd_path, const String& output_ofd_path);
41
50 static bool OfdOptimize(const WString& input_ofd_path, const WString& output_ofd_path);
51
68 static bool OfdCompress(const String& input_ofd_path, const String& output_ofd_path, float downsample, float boot_downsample,
69 int compress_level, CompressCodecType codec_type, int float_bit, bool res_optimizer, bool lzma_compress);
70
87 static bool OfdCompress(const WString& input_ofd_path, const WString& output_ofd_path, float downsample, float boot_downsample,
88 int compress_level, CompressCodecType codec_type, int float_bit, bool res_optimizer, bool lzma_compress);
89 };
90
91 } // namespace ofd
92 } // namespace foxit
93
94 #endif // _BUILD_OFDSDK_
foxit::ofd::Optimize::OfdOptimize
static bool OfdOptimize(const String &input_ofd_path, const String &output_ofd_path)
优化OFD文件。
foxit::ofd::Optimize::e_CompressCodecTypeJPEG
编码类型：jpg。
Definition: fs_ofdoptimize.h:28
foxit::ofd::Optimize::e_CompressCodecTypeJPEG2000
编码类型：jpg2000。
Definition: fs_ofdoptimize.h:26
CFX_WideString
宽字符串类
Definition: fx_string.h:1457
foxit::ofd::Optimize::OfdCompress
static bool OfdCompress(const String &input_ofd_path, const String &output_ofd_path, float downsample, float boot_downsample, int compress_level, CompressCodecType codec_type, int float_bit, bool res_optimizer, bool lzma_compress)
高压缩OFD文件。
foxit::ofd::Optimize::CompressCodecType
CompressCodecType
OFD高压缩编码类型定义枚举类型。
Definition: fs_ofdoptimize.h:24
fs_common.h
通用定义和类的头文件。
foxit::ofd::Optimize
Definition: fs_ofdoptimize.h:17
foxit
Foxit命名空间。
Definition: fs_taggedpdf.h:27
CFX_ByteString
字节字符串类
Definition: fx_string.h:317