Foxit PDF SDK
foxit::addon::compliance::PDFCompliance类 参考
类 foxit::addon::compliance::PDFCompliance 继承关系图:
foxit::Base

Public 成员函数

 PDFCompliance ()
 构造函数。
 
 PDFCompliance (const PDFCompliance &other)
 带另一个PDF合规性对象的构造函数。 更多...
 
 ~PDFCompliance ()
 析构函数。
 
ResultInformation ConvertPDFFile (const wchar_t *src_pdf_path, const wchar_t *saved_pdf_path, int convert_to_version, ProgressCallback *progress_callback=0)
 将PDF文件转换为指定的PDF版本。 更多...
 
bool IsEmpty () const
 检查当前对象是否为空。 更多...
 
bool operator != (const PDFCompliance &other) const
 不相等操作符。 更多...
 
PDFComplianceoperator= (const PDFCompliance &other)
 赋值操作符。 更多...
 
bool operator== (const PDFCompliance &other) const
 相等操作符。 更多...
 
ResultInformation 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文件。 更多...
 
- Public 成员函数 继承自 foxit::Base
FS_HANDLE Handle () const
 获取当前对象的句柄。 更多...
 

详细描述

此类可用于转换PDF文件的PDF版本。目前支持转换为PDF 1.3/1.4/1.5/1.6/1.7。 请确保ComplianceEngine已成功初始化。

参见
ComplianceEngine

构造及析构函数说明

◆ PDFCompliance()

foxit::addon::compliance::PDFCompliance::PDFCompliance ( const PDFCompliance other)

带另一个PDF合规性对象的构造函数。

参数
[in]other另一个PDF合规性对象。

成员函数说明

◆ 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=()

PDFCompliance& foxit::addon::compliance::PDFCompliance::operator= ( const PDFCompliance other)

赋值操作符。

参数
[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对象。