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

Public 成员函数

 PDFCompliance ()
 构造函数。
 
 PDFCompliance (PDFCompliance other)
 带另一个PDF合规性对象的构造函数。 更多...
 
ResultInformation ConvertPDFFile (string src_pdf_path, string saved_pdf_path, int convert_to_version, ProgressCallback progress_callback)
 将PDF文件转换为指定的PDF版本。 更多...
 
bool IsEmpty ()
 检查当前对象是否为空。 更多...
 
ResultInformation Verify (int verify_version, string src_pdf_path, int first_page_index, int last_page_index, ProgressCallback progress_callback)
 使用指定的PDF版本验证PDF文件。 更多...
 

详细描述

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

参见
ComplianceEngine

构造及析构函数说明

◆ PDFCompliance()

foxit.addon.compliance.PDFCompliance.PDFCompliance ( PDFCompliance  other)
inline

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

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

成员函数说明

◆ ConvertPDFFile()

ResultInformation foxit.addon.compliance.PDFCompliance.ConvertPDFFile ( string  src_pdf_path,
string  saved_pdf_path,
int  convert_to_version,
ProgressCallback  progress_callback 
)
inline

将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 ( )
inline

检查当前对象是否为空。

当前对象为空时,意味着当前对象无用。

返回
true表示当前对象为空,false表示不为空。

◆ Verify()

ResultInformation foxit.addon.compliance.PDFCompliance.Verify ( int  verify_version,
string  src_pdf_path,
int  first_page_index,
int  last_page_index,
ProgressCallback  progress_callback 
)
inline

使用指定的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 对象。