Foxit PDF SDK

fs_pdfa.h
浏览该文件的文档.
1
16 #ifndef FS_PDFA_H_
17 #define FS_PDFA_H_
18
19 #include "fs_compliancecommon.h"
20
26 namespace foxit {
30 namespace addon {
34 namespace compliance {
41 class PDFACompliance FS_FINAL : public Base {
42 public:
48 typedef enum _Version {
50 e_VersionPDFA1a = 1,
52 e_VersionPDFA1b = 2,
54 e_VersionPDFA2a = 3,
56 e_VersionPDFA2b = 4,
58 e_VersionPDFA2u = 5,
60 e_VersionPDFA3a = 6,
62 e_VersionPDFA3b = 7,
64 e_VersionPDFA3u = 8,
66 e_VersionPDFA1bWithoutFBC = 9,
68 e_VersionPDFA2bWithoutFBC = 10,
70 e_VersionPDFA3bWithoutFBC = 11
71 } Version;
72
73
75 PDFACompliance();
76 // 强烈建议用户不要使用此方法；否则可能发生未知情况。
77 explicit PDFACompliance(FS_HANDLE handle);
79 ~PDFACompliance();
85 PDFACompliance(const PDFACompliance& other);
86
94 PDFACompliance& operator = (const PDFACompliance& other);
102 bool operator == (const PDFACompliance& other) const;
103
111 bool operator != (const PDFACompliance& other) const;
112
120 bool IsEmpty() const;
121
138 ResultInformation Verify(Version verify_version, const wchar_t* src_pdf_path,
139 int first_page_index = 0, int last_page_index = -1,
140 ProgressCallback* progress_callback = NULL);
141
154 ResultInformation ConvertPDFFile(const wchar_t* src_pdf_path, const wchar_t* saved_pdf_path,
155 Version convert_to_version, ProgressCallback* progress_callback = NULL);
156
178 ResultInformation ConvertPDFFile(const wchar_t* src_pdf_path, const wchar_t* saved_pdf_path, Version convert_to_version,
179 ComplianceEngine::ViewOrPrintCondition view_or_print_condition,
180 bool convert_problem_pages_into_image, bool convert_all_pages_into_image,
181 int32 image_resolution, ProgressCallback* progress_callback = NULL);
182 };
183
184 } // namespace compliance
185 } // namespace addon
186 } // namespace foxit
187
188 #endif // FS_PDFA_H_
189
foxit::addon::compliance::PDFACompliance::~PDFACompliance
~PDFACompliance()
析构函数。
foxit::addon::compliance::PDFACompliance::e_VersionPDFA1bWithoutFBC
PDF/A-1b（无后备转换），仅用于转换。
Definition: fs_pdfa.h:66
foxit::addon::compliance::PDFACompliance::e_VersionPDFA2b
PDF/A-2b。
Definition: fs_pdfa.h:56
foxit::addon::compliance::PDFACompliance::e_VersionPDFA3bWithoutFBC
PDF/A-3b（无后备转换），仅用于转换。
Definition: fs_pdfa.h:70
foxit::addon::compliance::PDFACompliance::e_VersionPDFA1b
PDF/A-1b。
Definition: fs_pdfa.h:52
foxit::addon::compliance::ResultInformation
Definition: fs_compliancecommon.h:755
foxit::addon::compliance::PDFACompliance::e_VersionPDFA3a
PDF/A-3a。
Definition: fs_pdfa.h:60
foxit::addon::compliance::PDFACompliance::e_VersionPDFA3b
PDF/A-3b。
Definition: fs_pdfa.h:62
foxit::addon::compliance::ComplianceEngine::ViewOrPrintCondition
ViewOrPrintCondition
查看或打印条件的枚举。
Definition: fs_compliancecommon.h:56
foxit::addon::compliance::PDFACompliance::PDFACompliance
PDFACompliance()
构造函数。
foxit::addon::compliance::ProgressCallback
Definition: fs_compliancecommon.h:192
foxit::addon::compliance::PDFACompliance
Definition: fs_pdfa.h:41
foxit::addon::compliance::PDFACompliance::ConvertPDFFile
ResultInformation ConvertPDFFile(const wchar_t *src_pdf_path, const wchar_t *saved_pdf_path, Version convert_to_version, ProgressCallback *progress_callback=0)
使用指定的PDF/A版本转换PDF文件。
foxit::addon::compliance::PDFACompliance::e_VersionPDFA2u
PDF/A-2u。
Definition: fs_pdfa.h:58
fs_compliancecommon.h
合规性基本类和方法的头文件。
foxit::addon::compliance::PDFACompliance::Version
Version
PDF/A版本的枚举。
Definition: fs_pdfa.h:48
foxit::FS_HANDLE
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:213
foxit::addon::compliance::PDFACompliance::operator==
bool operator==(const PDFACompliance &other) const
相等操作符。
foxit::int32
FX_INT32 int32
有符号 32 位整数。
Definition: fs_basictypes.h:193
foxit::Base
Definition: fs_basictypes.h:465
foxit::addon::compliance::PDFACompliance::e_VersionPDFA2a
PDF/A-2a。
Definition: fs_pdfa.h:54
foxit::addon::compliance::PDFACompliance::e_VersionPDFA2bWithoutFBC
PDF/A-2b（无后备转换），仅用于转换。
Definition: fs_pdfa.h:68
foxit::addon::compliance::PDFACompliance::e_VersionPDFA1a
PDF/A-1a。
Definition: fs_pdfa.h:50
foxit
Foxit命名空间。
Definition: fs_taggedpdf.h:27
foxit::addon::compliance::PDFACompliance::Verify
ResultInformation Verify(Version verify_version, const wchar_t *src_pdf_path, int first_page_index=0, int last_page_index=-1, ProgressCallback *progress_callback=0)
使用指定的PDF/A版本验证PDF文件。
foxit::addon::compliance::PDFACompliance::operator !=
bool operator !=(const PDFACompliance &other) const
不相等操作符。
NULL
#define NULL
空指针值。
Definition: fx_system.h:792
foxit::addon::compliance::PDFACompliance::IsEmpty
bool IsEmpty() const
检查当前对象是否为空。
foxit::addon::compliance::PDFACompliance::operator=
PDFACompliance & operator=(const PDFACompliance &other)
赋值操作符。
foxit::addon::compliance::PDFACompliance::e_VersionPDFA3u
PDF/A-3u。
Definition: fs_pdfa.h:64