Foxit PDF SDK
fs_combination.h
浏览该文件的文档.
1 
15 #ifndef FS_COMBINATION_H_
16 #define FS_COMBINATION_H_
17 
18 #include "common/fs_common.h"
19 #include "pdf/fs_pdfdoc.h"
20 
26 namespace foxit {
30 namespace pdf {
32 class CombineDocumentInfo FS_FINAL : public Base {
33  public:
43  CombineDocumentInfo(const WString& file_path, const WString& password);
44 
55  CombineDocumentInfo(const PDFDoc& doc);
56 
57  // 强烈建议用户不要使用此方法;否则可能会出现未知情况。
58  explicit CombineDocumentInfo(FS_HANDLE handle);
59 
62 
69 
78 
86  bool operator==(const CombineDocumentInfo& other) const;
87 
95  bool operator!=(const CombineDocumentInfo& other) const;
96 
104  bool IsEmpty() const;
105 
121  void SetBookmarkTitle(const WString& bookmark_title);
122 
136  void SetPDFFileName(const WString& pdf_file_name);
137 };
138 
141 
142 
145 class Combination FS_FINAL : public Base {
146  public:
152  typedef enum _CombineDocsOptions {
154  e_CombineDocsOptionBookmark = 0x0001,
156  e_CombineDocsOptionAcroformRename = 0x0002,
158  e_CombineDocsOptionStructrueTree = 0x0004,
160  e_CombineDocsOptionOutputIntents = 0x0008,
162  e_CombineDocsOptionOCProperties = 0x0010,
164  e_CombineDocsOptionMarkInfos = 0x0020,
166  e_CombineDocsOptionPageLabels = 0x0040,
171  e_CombineDocsOptionNames = 0x0080,
176  e_CombineDocsOptionObjectStream = 0x0100,
178  e_CombineDocsOptionDuplicateStream = 0x0200
179  } CombineDocsOptions;
180 
181 
203  static common::Progressive StartCombineDocuments(const char* dest_file_path, const CombineDocumentInfoArray& document_array, uint32 options, common::PauseCallback* pause = NULL);
204 
226  static common::Progressive StartCombineDocuments(const wchar_t* dest_file_path, const CombineDocumentInfoArray& document_array, uint32 options, common::PauseCallback* pause = NULL);
227 
250  static common::Progressive StartCombineDocuments(foxit::common::file::WriterCallback* dest_file, const CombineDocumentInfoArray& document_array, uint32 options, foxit::common::PauseCallback* pause = NULL);
251 };
252 
253 } // namespace pdf
254 } // namespace foxit
255 #endif // FS_COMBINATION_H_
CombineDocumentInfo(const WString &file_path, const WString &password)
构造函数,带参数。
CombineDocumentInfo & operator=(const CombineDocumentInfo &other)
赋值操作符。
文件写入接口。
Definition: fx_stream.h:470
PDF文档相关定义和类的头文件。
Definition: fs_combination.h:140
宽字符串类
Definition: fx_string.h:1457
Definition: fs_pdfdoc.h:771
~CombineDocumentInfo()
析构函数。
bool operator==(const CombineDocumentInfo &other) const
相等操作符。
Definition: fs_combination.h:145
Definition: fx_basic.h:3737
bool operator!=(const CombineDocumentInfo &other) const
不相等操作符。
Definition: fs_common.h:373
FX_UINT32 uint32
无符号 32 位整数。
Definition: fs_basictypes.h:196
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:214
通用定义和类的头文件。
void SetBookmarkTitle(const WString &bookmark_title)
为合并结果文件中相关源PDF文档的根书签设置新父书签的标题。
Definition: fs_basictypes.h:449
Definition: fs_combination.h:32
Foxit命名空间。
Definition: fs_taggedpdf.h:27
bool IsEmpty() const
检查当前对象是否为空。
#define NULL
空指针值。
Definition: fx_system.h:792
void SetPDFFileName(const WString &pdf_file_name)
设置将与其他PDF文件合并的PDF文件的名称。