此类可用于转换PDF文件的PDF版本。目前支持转换为PDF 1.3/1.4/1.5/1.6/1.7。 请确保ComplianceEngine已成功初始化。
- 参见
- ComplianceEngine
◆ PDFCompliance()
| foxit::addon::compliance::PDFCompliance::PDFCompliance |
( |
const PDFCompliance & |
other | ) |
|
◆ ConvertPDFFile()
| ResultInformation foxit::addon::compliance::PDFCompliance::ConvertPDFFile |
( |
const wchar_t * |
src_pdf_path, |
|
|
const wchar_t * |
saved_pdf_path, |
|
|
int |
convert_to_version, |
|
|
ProgressCallback * |
progress_callback = 0 |
|
) |
| |
将PDF文件转换为指定的PDF版本。
- 参数
-
| [in] | src_pdf_path | 要转换的源PDF文件的完整路径。这不应该是空字符串。 |
| [in] | saved_pdf_path | 保存转换后PDF文件的完整路径。这不应该是空字符串。 |
| [in] | convert_to_version | 指定要转换到的PDF版本的整数,例如值14表示版本"1.4", 值15表示"1.5",等等。目前仅支持版本值13、14、15、16和17。 特别地,当版本值为13(表示PDF 1.3)时:
-
如果源PDF文件包含透明度数据,它将被转换为PDF 1.4而不是PDF 1.3(不支持透明度)。 用户可以在返回的ResultInformation对象中检查命中数据以获取更多详细信息。
-
如果源PDF文件不包含任何透明度数据,它将按预期转换为PDF 1.3。
|
| [in] | progress_callback | 由用户实现的进度回调,可用于获取进度数据。 这可以是NULL。默认值:NULL。 |
- 返回
- ResultInformation对象。
◆ IsEmpty()
| bool foxit::addon::compliance::PDFCompliance::IsEmpty |
( |
| ) |
const |
检查当前对象是否为空。
当前对象为空时,意味着当前对象无用。
- 返回
- true表示当前对象为空,false表示不为空。
◆ operator !=()
| bool foxit::addon::compliance::PDFCompliance::operator != |
( |
const PDFCompliance & |
other | ) |
const |
不相等操作符。
- 参数
-
| [in] | other | 另一个PDF合规性对象。此函数将检查当前对象是否不等于此对象。 |
- 返回
- true表示不相等,false表示相等。
◆ operator=()
赋值操作符。
- 参数
-
| [in] | other | 另一个PDF合规性对象,其值将被赋给当前对象。 |
- 返回
- 当前对象自身的引用。
◆ operator==()
| bool foxit::addon::compliance::PDFCompliance::operator== |
( |
const PDFCompliance & |
other | ) |
const |
相等操作符。
- 参数
-
| [in] | other | 另一个PDF合规性对象。此函数将检查当前对象是否等于此对象。 |
- 返回
- true表示相等,false表示不相等。
◆ Verify()
| ResultInformation foxit::addon::compliance::PDFCompliance::Verify |
( |
int |
verify_version, |
|
|
const wchar_t * |
src_pdf_path, |
|
|
int |
first_page_index = 0, |
|
|
int |
last_page_index = -1, |
|
|
ProgressCallback * |
progress_callback = 0 |
|
) |
| |
使用指定的PDF版本验证PDF文件。
- 参数
-
| [in] | verify_version | 要验证的PDF版本。一个指定要验证的PDF版本的整数,例如值14表示版本"1.4", 值15表示"1.5",等等。目前仅支持版本值13、14、15、16和17。 特别地,当版本值为13(表示PDF 1.3)时。用户可以在返回的ResultInformation对象中检查命中数据以获取更多详细信息。 |
| [in] | src_pdf_path | 要验证的源PDF文件的完整路径。这不应该是空字符串。 |
| [in] | first_page_index | 要验证的第一页的索引,从0开始。默认值:0。 |
| [in] | last_page_index | 要验证的最后一页的索引。如果这是-1,那意味着 源PDF文件的所有页面都将被验证, 参数first_page_index将被忽略。默认值:-1。 |
| [in] | progress_callback | 由用户实现的进度回调,可用于获取进度数据。 这可以是NULL。默认值:NULL。 |
- 返回
- ResultInformation对象。